- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Nohup question
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
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
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
05-29-2001 10:43 PM
05-29-2001 10:43 PM
Re: Nohup question
Make a script that first do a sleep for, lets say 100 sec, and then perform your job.
sometimes the nohup is not working correct and the sleep is is forsing the job to run correctly with "nohup".
After starting the script, close your terminal. The job is now running as a nohup job and after the sleep your program will run correctly.
Try it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2012 09:26 PM
06-06-2012 09:26 PM
Re: Nohup question
So here's my script:
doit:
#!/usr/bin/ksh
sleep 10 # had to add this to get nohup to work
cat fie | myperlscript > file.out
exit
# end of script
I do
$ nohup doit &
$ exit
if I don't put the sleep in, it warns that I have running jobs, I have to type exit again, and nohup kills my process.
myperscript just reads stdin and prints it to stdout adding line breaks every 80 chars after the nearest '>'with no line break.
The file (xml) is so huge ( and all one line ) that I can't use sed to do this because it runs out of memory hence the perl script. I am doing nohup, so I can go to bed and get the result in the morning.
- « Previous
-
- 1
- 2
- Next »