I let a script A call script B.
I used
nohup a.sh &>/tmp/log &
In script A it calls B directly, without any redirecting or nohup or background.
However A is always "Stopped", while B is running correctly. Anybody knows why?
thanks!
-----Post Update-----
BTW, if I don't use nohup... (1 Reply)
I let a script A call script B.
I used
nohup a.sh &>/tmp/log &
In script A it calls B directly, without any redirecting or nohup or background.
However A is always "Stopped", while B is running correctly. Anybody knows why?
thanks!
-----Post Update-----
BTW, if I don't use nohup... (4 Replies)
What I need to learn is how to use a script that launches background processes, and then kills those processes as needed.
The script successfully launches the script. But how do I check to see if the job exists before I kill it?
I know my problem is mostly failure to understand parameter... (4 Replies)
Hi,
I am using net::ftp for transferring files now i am trying in the same Linux server as a result ftp is very fast but if the server is other location (remote) then the file transferred will be time consuming.
So i want try putting FTP part as a background process. I am unaware how to do... (5 Replies)
Hello,
I am trying to find a way to send several sequential commands via SSH to a remote box in a single command.
Thoughts so far:
1) Can I put them into a function and call the function within the ssh command?
e.g.
ssh <targetserver> $(functionx)
No - then it calls the function in... (4 Replies)
Hi All,
Can someone help me in knowing the exact difference between nohup and &.
The definition is quite clear but i only want to know if i run my job using & and in between i hung up my terminal. (10 Replies)
I have a question.
I will be running a background process using nohup and & command at end. I want to send output to a file say myprocess.out.
So will this command work?
nohup myprocess.ksh > myprocess.out &
Thanks in advance guys !!!
:) (3 Replies)
Hi,
I have written a menu driven shell script in which as per the choice, I run the another script on background.
For eg:
1. get info
2)process info
3)modify info
All the operations have different scripts which i schedule in background using &.
However I wish to display the error... (0 Replies)
Discussion started by: ashima jain
0 Replies
LEARN ABOUT ULTRIX
nice
nice(1) General Commands Manual nice(1)Name
nice, nohup - execute a command at a lower priority
Syntax
nice [-number] command [arguments]
nohup command [arguments]
Description
The command executes command with low scheduling priority (Bourne Shell only). If the number argument is present, the priority is incre-
mented (higher numbers mean lower priorities) by that amount up to a limit of 20. The default number is 10.
The super-user may run commands with priority higher than normal by using a negative priority, for example, `--10'.
The command executes command immune to hangup and terminate signals from the controlling terminal. The priority is incremented by 5. The
command should be invoked from the shell with an ampersand (&) in order to prevent it from responding to interrupts by or stealing the
input from the next person who logs in on the same terminal. The syntax of is also different.
Options-number Increments the priority by a specified number up to a limit of 20. The default is 10.
Restrictions
The and commands are particular to If you use then commands executed with an ampersand (&) are automatically immune to hangup signals while
in the background. There is a built-in command which provides immunity from terminate, but it does not redirect output to nohup.out.
The command is built into with a slightly different syntax than described here. The form ``nice +10'' nices to positive nice, and ``nice
-10'' can be used by the superuser to give a process more of the processor.
Diagnostics
The command returns the exit status of the subject command.
Files
nohup.out standard output and standard error file under nohup
See Alsocsh(1), getpriority(2), renice(8)nice(1)