The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
monitoring running processes nhatch Shell Programming and Scripting 2 12-21-2007 09:03 AM
parsing currently running processes blowtorch High Level Programming 7 10-12-2006 04:36 AM
how to find all processes that are running speedieB UNIX for Dummies Questions & Answers 9 07-12-2006 06:04 AM
getting certain info for all processes currently running Yifan_Guo High Level Programming 3 03-25-2005 07:53 PM
Running two processes in background jacob_gs Shell Programming and Scripting 6 05-13-2002 12:40 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 01-30-2007
yakyaj yakyaj is offline
Registered User
  
 

Join Date: Dec 2006
Posts: 9
running processes with no hang up

Can we run a script in nohup which calls another script in nohup.
eg

Script1.sh
#Script1 start
nohup script2.sh
.
.
.
#end script1.sh

Now can I do this


nohup script1.sh


Also is all scheduled processes (crontab entries) will run as nohup?

Would appreciate if any one can help me to clarify my doubts.
  #2 (permalink)  
Old 01-30-2007
maheshwin maheshwin is offline
Registered User
  
 

Join Date: Dec 2006
Posts: 55
Quote:
Originally Posted by yakyaj
Can we run a script in nohup which calls another script in nohup.
eg

Script1.sh
#Script1 start
nohup script2.sh
.
.
.
#end script1.sh

Now can I do this


nohup script1.sh


Also is all scheduled processes (crontab entries) will run as nohup?

Would appreciate if any one can help me to clarify my doubts.
yea u can run
but u need to give the full execute permission
  #3 (permalink)  
Old 01-30-2007
suntac suntac is offline
Registered User
  
 

Join Date: Jul 2005
Location: Amsterdam
Posts: 97
Quote:
Originally Posted by yakyaj
Can we run a script in nohup which calls another script in nohup.
eg

Script1.sh
#Script1 start
nohup script2.sh
.
.
.
#end script1.sh

Now can I do this


nohup script1.sh


Also is all scheduled processes (crontab entries) will run as nohup?

Would appreciate if any one can help me to clarify my doubts.
I never tried to nest a nohup in a nohup command but it would make sense that it would work. You can check the nohup manual page if it stating anything about it. Please do try and post the results on this forum so other people can see your results.

About cron and nohup. A script executed by cron will run always in the background if it really really makes use of pure nohup I would not know but you could check.

Regards,
Johan Louwers.

Last edited by reborg; 01-30-2007 at 09:25 AM..
  #4 (permalink)  
Old 01-30-2007
yakyaj yakyaj is offline
Registered User
  
 

Join Date: Dec 2006
Posts: 9
I tried this

Ran the nested nohup scripts with each one echoing something.After run complete, Checked the nohup.out and could find both these echo statements in nohup.out.

Am concluding that we can have nested nohup calls.Correct me if am wrong.


Also if any body knows please let me know whether cronjobs will run as nohup(Know that they runs in background but not sure it is nohup)

Thanks
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 05:29 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0