10 More Discussions You Might Find Interesting
1. AIX
Hi
I need to execute about 1000 scp commands sequential , so I made "scp.sh" - like this
scp - rp ...
scp - rp ...
............
scp - rp ...
then I run
nohup sh scp.sh &The problem is: nohup process stopped when I closed session, or when the session expired,... Something wrong :(:(:(
... (4 Replies)
Discussion started by: bobochacha29
4 Replies
2. Shell Programming and Scripting
Hi,
Is there any way to achieve that my script should always execute like:
nohup ./scriptname >nohup.out &
even if i execute ./scriptname , it should be converted to nohup ./scriptname >nohup.out & and then execute.
How i can achieve this?
Thanks in advance (2 Replies)
Discussion started by: pandeesh
2 Replies
3. Ubuntu
Hi All
I am struggling to get a process to run in the background on a Ubuntu Linux machine. I run: -
/home/brad > /usr/bin/nohup sudo /home/brad/spideroak/jsystem/runner/runAgent < /dev/null &
5611
/home/brad > /usr/bin/nohup: appending output to `nohup.out'
+ Stopped (SIGTTOU) ... (9 Replies)
Discussion started by: steadyonabix
9 Replies
4. Shell Programming and Scripting
I am trying to execute following code:
alarm_file_array="test1.alarms test2.alarms test3.alarms test4.alarms"
for file in ${alarm_file_array}
do
nohup tail -f $file |awk 'NR>10' >> output.alarms 2>/dev/null &
done
Whenever it tries to execute nohup command it hangs because of the... (3 Replies)
Discussion started by: bhallarandeep
3 Replies
5. UNIX for Dummies Questions & Answers
My job is launched using this command: I'm at home and having VPN drops so I used nohup and background.
nohup perf_mon -c rating_4_multi,cfg &
The main script is PID 26119, and the sub task under it is 26118 which is not running - just sits there. 26119 runs forever but nothing else runs. I... (2 Replies)
Discussion started by: ido1957
2 Replies
6. Shell Programming and Scripting
There is a daemon which is constantly writing to this particular nohup.out file.This daemon can't be stopped. But the large size of this file is hampering the directory space.I want to write a script which will wait for 48 hours and then delete the contents of the file ( nohup.out ), but not the... (1 Reply)
Discussion started by: Gourav
1 Replies
7. Shell Programming and Scripting
Hello
I am running this script inst.sh
#!/bin/ksh
sqlplus -s username/password @temp.sql
----Here is my temp.sql
set serveroutput on
select instance_name from V$instance;
exit
When i run the script inst.sh on the command prompt...it runs fine...but
when i run it using... (5 Replies)
Discussion started by: njafri
5 Replies
8. Shell Programming and Scripting
Hi,
I am kinda confused with this, am not sure what is happening
i have a script say test.sh
----------
cat myfile | while read line
do
exit 2
done
echo "out of loop"
-----------
as it is evident, the exit should cause the script to terminate ,hence producing no output for the... (1 Reply)
Discussion started by: sumirmehta
1 Replies
9. UNIX for Dummies Questions & Answers
Hello folks,
I have got a script which telnets to different boxes and runs a certain script with 3 run time args.
The line from the script which does it is:
(sleep 1; echo $USERID ; sleep 1; echo $PASSWD ; sleep 1 ; echo y ; sleep 1 ; echo "\r" ; sleep 1 ; echo "cd $FILEPATH" ; sleep 1 ; sleep 1... (1 Reply)
Discussion started by: Rajat
1 Replies
10. Solaris
While executing a ksh file with a input parameter in background like the following
bash-2.03$nohup fil.ksh 4 &
the nohup session is stopped.
The same ksh file while executed like
bash-2.03$fil.ksh 4
works fine.
I am trying the above in Solaris 5.8 in bash shell. Please let me... (2 Replies)
Discussion started by: kkna
2 Replies
NOHUP(1) User Commands NOHUP(1)
NAME
nohup - run a command immune to hangups, with output to a non-tty
SYNOPSIS
nohup COMMAND [ARG]...
nohup OPTION
DESCRIPTION
Run COMMAND, ignoring hangup signals.
--help display this help and exit
--version
output version information and exit
If standard input is a terminal, redirect it from an unreadable file. If standard output is a terminal, append output to 'nohup.out' if
possible, '$HOME/nohup.out' otherwise. If standard error is a terminal, redirect it to standard output. To save output to FILE, use
'nohup COMMAND > FILE'.
NOTE: your shell may have its own version of nohup, which usually supersedes the version described here. Please refer to your shell's doc-
umentation for details about the options it supports.
AUTHOR
Written by Jim Meyering.
REPORTING BUGS
GNU coreutils online help: <http://www.gnu.org/software/coreutils/>
Report nohup translation bugs to <http://translationproject.org/team/>
COPYRIGHT
Copyright (C) 2017 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.
SEE ALSO
Full documentation at: <http://www.gnu.org/software/coreutils/nohup>
or available locally via: info '(coreutils) nohup invocation'
GNU coreutils 8.28 January 2018 NOHUP(1)