- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: how to include commands after calling nohup in...
Categories
Company
Local Language
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
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
Community
Resources
Forums
Blogs
- 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
09-24-2008 04:40 PM
09-24-2008 04:40 PM
how to include commands after calling nohup in ksh script
i would like to remove thousand of directories inside this folder. i created ksh script.how to execute the command using nohup. currently i'm using like this:
# ./script &
whenever i exit the session, it will exit this session too. hope to hear from you. thank you.
should u have any comments to my script or anything, would appreciate your advice. thank you
# more script
#!/usr/bin/ksh
cd /restore_01/20080620old/item1/data
rm -R 990
rm -R 987
rm -R 986
rm -R 985
rm -R 984
rm -R 983
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2008 05:11 PM
09-24-2008 05:11 PM
Re: how to include commands after calling nohup in ksh script
nohup ./script &
This will run the script in background and immune to logout/exits.
Regards
Vijay Chinnasamy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2008 05:16 PM
09-24-2008 05:16 PM
Re: how to include commands after calling nohup in ksh script
cd /restore_01/20080620old/item1/data
if [[ $? -eq 0 ]]
then
rm -Rf 990
else
exit 1
fi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2008 07:11 PM
09-24-2008 07:11 PM
Re: how to include commands after calling nohup in ksh script
except nohup you can use (./script & ). this opens a sub shell and puts it to background.
Kenan.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2008 08:03 PM
09-24-2008 08:03 PM
Re: how to include commands after calling nohup in ksh script
I think you can use like this
# nohup script &
Suraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2008 09:12 PM
09-24-2008 09:12 PM
Re: how to include commands after calling nohup in ksh script
rm -rf 990 987 986 985 984 983 ...