08-12-2009
using nohup with set of commands
hi
I want to use nohup command with set of commands ..
my goofy sample :
nohup while true do ; date; done
and its not working .
any idea ?
cheers
10 More Discussions You Might Find Interesting
1. Filesystems, Disks and Memory
Hello,
I just want to ask if killing a specific procees might delete files being read of that process?
Here is the scenario: I execute nohup find . -type f |xargs ls -lrt > nohup1.out &
I noticed that it is taking so much space, I check that there are files so huge
.nfs* and keep on... (2 Replies)
Discussion started by: james_falco
2 Replies
2. Shell Programming and Scripting
Is there a way I can queue something like 800 commands in a BASH (or anything else for that matter) script?
I just basically don't want to have 800 commands pound my system at once. So far I have been just running the list (dynamically generated) through a loop, and executing every command in... (1 Reply)
Discussion started by: jjinno
1 Replies
3. Shell Programming and Scripting
Hi,
I have a shell script with code
. perf.env
cd $QRY_DIR
for SHELL_FILE in sql1
do
export SNAME=$SHELL_FILE
${SCRIPT_DIR}/perf_qry.sh ${SPOOL_DIR} ${DB_ENVNAME} ${NAME} &
RC=$(expr ${RC:-0} + $? )
sleep 60
if
then
echo sysdate>test1
echo query1.txt>>test1
grep -i... (6 Replies)
Discussion started by: ran16
6 Replies
4. Shell Programming and Scripting
I need to run multiple commands on remote server using the nohup...
I have tried 2 options
1) rsh <SERVER_NAME> -n "nohup perl $SCRIPTS_DIR/abc.pl ; $SCRIPTS_DIR/xyz.ksh & " &
2) rsh <SERVER_NAME> -n "nohup perl $SCRIPTS_DIR/abc.pl & nohup $SCRIPTS_DIR/xyz.ksh & " &
I need to know if... (2 Replies)
Discussion started by: aster007
2 Replies
5. AIX
Hi,
I have used "smit tcpip" to setup dhcp client but it does not work. Don't know why. Now I want to try using commands to do the job. I have studied commands chdev and mktcpip but did not find howto.
Please help. Thank you! (1 Reply)
Discussion started by: aixlover
1 Replies
6. UNIX for Dummies Questions & Answers
I have a unix script named 'test1' and it can be run using parameters say a, b and c. i.e. the command would be
test1 -a -b -c
this script gives the output in the log file as
script started
start time: 10.22 pm 7 april
end time: 10.30 pm 7 april
script finished
Now, i want to run... (3 Replies)
Discussion started by: swap21783
3 Replies
7. Solaris
Hi
I'm trying to understand variable scopes in solaris10.
It is said that to display env variables we use 3 commands :
- env
- set
- export
What is the difference between them ?
thx for help.
---------- Post updated at 11:00 AM ---------- Previous update was at 10:50 AM ----------
... (2 Replies)
Discussion started by: presul
2 Replies
8. Shell Programming and Scripting
Hi Everyone,
I'm relatively new to using c shell and I'm trying to understand a script for data processing. In it they use the set command:
E.g. one such line:
set scan = 'cat /home/wera/etc/.scan'
When I try to test the command myself with my own files:
set scan = 'cat... (1 Reply)
Discussion started by: linuxPlayer
1 Replies
9. Shell Programming and Scripting
I have list of commands in a file in one sever and i need to execute these set of commands in the server to which i m telnetting to .. (4 Replies)
Discussion started by: nikhil jain
4 Replies
10. UNIX and Linux Applications
Good afternoon:
I need your help please, Im new at Unix nd specially Unix applicationas like oracle and Ive got this problem:
I was asked to execute the next script using nohup in order to not hang up the session because it was supposed to connect to the database and then insert about 2... (3 Replies)
Discussion started by: alexcol
3 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)