HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Background process
Operating System - HP-UX
1833126
Members
3618
Online
110051
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2007 11:29 PM
07-08-2007 11:29 PM
Hi frns,
I am doing some FTP process in background from my script.
The issue i am facing now is my script is getting executed fine but since the FTP process is taking more time to get executed in background my application is not returning back to the prompt.
Is there any way to make my script to complete the execution once the FTP processes got over in background????
I am doing some FTP process in background from my script.
The issue i am facing now is my script is getting executed fine but since the FTP process is taking more time to get executed in background my application is not returning back to the prompt.
Is there any way to make my script to complete the execution once the FTP processes got over in background????
Solved! Go to Solution.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2007 12:44 AM
07-09-2007 12:44 AM
Solution
The exact mechanism you are using is not clear but I will assume your script is running ftp in the background but is not watching for it to finish. When you start a background process, always get the PID from the shell variable $! as in:
ftp ... stuff &
FTP_PID=$!
Now you can monitor $! periodically by checking it with ps as in:
ps -fp $FTP_PID
If ps returns with a non-zero return code, then the process no longer exists and is therefore completed.
Bill Hassell, sysadmin
ftp ... stuff &
FTP_PID=$!
Now you can monitor $! periodically by checking it with ps as in:
ps -fp $FTP_PID
If ps returns with a non-zero return code, then the process no longer exists and is therefore completed.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2007 02:20 AM
07-09-2007 02:20 AM
Re: Background process
Thx
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP