Visit Our UNIX and Linux User Community


running processes with no hang up


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users running processes with no hang up
# 1  
Old 01-30-2007
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  
Old 01-30-2007
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  
Old 01-30-2007
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 10:25 AM..
# 4  
Old 01-30-2007
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

Previous Thread | Next Thread
Test Your Knowledge in Computers #746
Difficulty: Medium
The Z80 is an 8-bit microprocessor introduced by Zilog.
True or False?

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Process remians in Running state causing other similar process to sleep and results to system hang

Hi Experts, I am facing one problem here which is one process always stuck in running state which causes the other similar process to sleep state . This causes my system in hanged state. On doing cat /proc/<pid>wchan showing the "__init_begin" in the output. Can you please help me here... (6 Replies)
Discussion started by: naveeng
6 Replies

2. UNIX for Advanced & Expert Users

Process remians in Running state causing other similar process to sleep and results to system hang

Hi Experts, I am facing one problem here which is one process always stuck in running state which causes the other similar process to sleep state . This causes my system in hanged state. On doing cat /proc/<pid>wchan showing the "__init_begin" in the output. Can you please help me here... (1 Reply)
Discussion started by: naveeng
1 Replies

3. BSD

Process remians in Running state causing other similar process to sleep and results to system hang

Hi Experts, I am facing one problem here which is one process always stuck in running state which causes the other similar process to sleep state . This causes my system in hanged state. On doing cat /proc/<pid>wchan showing the "__init_begin" in the output. Can you please help me here... (0 Replies)
Discussion started by: naveeng
0 Replies

4. Linux

Running processes

Hi guys is it normal to have 5-10 cron/syslog processes running... in my case i got 10 cron process running. (4 Replies)
Discussion started by: batas
4 Replies

5. Solaris

Running processes on GZ/LZ

Hi guys just a question is it normal to see running process on a non-global zone in the global zone... processes such as cron. (3 Replies)
Discussion started by: batas
3 Replies

6. Shell Programming and Scripting

how to know the running processes.

Hi can anybody help me regarding this.. i want know the output of ps -ef with explanation. how can we know the running processess. this is the output of ps -elf F S UID PID PPID C PRI NI ADDR SZ WCHAN STIME TTY TIME CMD 19 T root 0 0 0 0 SY ... (1 Reply)
Discussion started by: rajesh_pola
1 Replies

7. Shell Programming and Scripting

Help in running two processes in parellel

I have a script something like this: #!/usr/bin/ksh CLASSPATH=/apps/opt/db2udb/admin/db2bdt/sqllib/java/db2java.zip:/apps/opt/db2udb/admin/db2bdt/sqllib/java/db2jcc.jar:/apps/opt/db2udb/admin/db2bdt/sqllib/function:$CLASSPATH export CLASSPATH ... (7 Replies)
Discussion started by: ss3944
7 Replies

8. UNIX for Advanced & Expert Users

make a foreground running process to run background without hang up

I've tried this a long time ago and was successful but could not remember how i did it. Tried ctrl+Z and then used bg % could not figure what i did after to keep it no hangup - not sure if used nohup -p pid, can u plz help me out if this can be done. Any help will be appreciated. (12 Replies)
Discussion started by: pharos467
12 Replies

9. UNIX for Advanced & Expert Users

removing hang processes (AIX)

Hi Guys, Just wondering if I have a child process which is basically hanging and I can see that is on sleep or wait mode if I want to remove/terminate this process , the signal has to come from its parent I assume. The reason I'm asking this is because I'm facing a db2 hang situation and we... (3 Replies)
Discussion started by: hariza
3 Replies

10. Shell Programming and Scripting

Running two processes in background

hi there, here's what i need in my korn-shell: ... begin korn-shell script ... nohup process_A.ksh ; nohup process_B.ksh & ... "other stuff" ... end lorn-shell script in plain english i want process A and process B to run in the background so that the script can continue doing... (6 Replies)
Discussion started by: jacob_gs
6 Replies

Featured Tech Videos