Sponsored Content
Top Forums Shell Programming and Scripting using nohup with set of commands Post 302343372 by Scott on Wednesday 12th of August 2009 09:41:16 AM
Old 08-12-2009

This is a quote from the AIX nohup man page. I'm sure whatever your using will say much the same thing:

To run more than one command, use a shell procedure. For example, if you write the shell procedure:

neqn math1 | nroff > fmath1

and name it the nnfmath1 file, you can run the nohup command for all of the commands in the nnfmath1 file with the command:

nohup sh nnfmath1
Actually I hope the man page for your UNIX / Linux explains it better - because that description was complete gibberish!

10 More Discussions You Might Find Interesting

1. Filesystems, Disks and Memory

killing nohup commands delete files?

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

Running a queued set of commands?

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

Problem while execution of second set of commands

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

using mutiple "nohup" to execute multiple commands.

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

How to set dhcp client by using commands

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

How to use 'nohup' and 'at' commands collectively?

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

export vs env vs set commands

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

Using commands within the command 'set'

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

how do i execute a set of commands in telnet??

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

Execute Oracle pl/sql commands in a scrit using nohup

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)

nohup - run a command immune to hangups, with output to a non-tty SYNOPSIS
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 /dev/null. 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
Report nohup bugs to bug-coreutils@gnu.org GNU coreutils home page: <http://www.gnu.org/software/coreutils/> General help using GNU software: <http://www.gnu.org/gethelp/> COPYRIGHT
Copyright (C) 2009 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
The full documentation for nohup is maintained as a Texinfo manual. If the info and nohup programs are properly installed at your site, the command info coreutils 'nohup invocation' should give you access to the complete manual. GNU coreutils 7.1 July 2010 NOHUP(1)

Featured Tech Videos

All times are GMT -4. The time now is 05:12 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy