10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
I am running nohup cp & in a shell script.
How do I get a timestamp so I can get a timing of how long the copy took?
Roughly, the script does something like below:
date
nohup cp -rp /files/source /files/target &
date
I am mainly wanting to know how long it took for the... (9 Replies)
Discussion started by: newbie_01
9 Replies
2. Shell Programming and Scripting
Shell : bash
OS : Oracle Linux 6.4
I want to save the ouput of a nohup command to file other than nohup.out . Below are my 3 attempts.
For both Attempt1 and Attempt2 , the redirection logs the output correctly to the output file. But I get the error "ignoring input and redirecting stderr to... (7 Replies)
Discussion started by: kraljic
7 Replies
3. Shell Programming and Scripting
Hi,
I want to run another script inside shelll script in nohup mode.
let explain.
under the same folder ,I have two scripts
scrone.sh
scrtwo.sh
In scrone.sh
if
then
nohup ./scrtwo.sh &
echo " Script two has been run correctly"
else
echo " Exiting from the script"
fi
If... (3 Replies)
Discussion started by: ckchelladurai
3 Replies
4. Shell Programming and Scripting
why, when i run my shell with sh command it run without problem, but when run with nohup nombreshell.sh $ command not run correctly... values obtained from database are not displayed in the csv file.
My shell do that:
1° data base access with sqlplus:
read_sql_stmt() {
typeset stmt=$1... (3 Replies)
Discussion started by: joaco
3 Replies
5. Linux
Hi,
nohup sar -u 10 $COUNT | awk 'NR>2 {$2=$4=$7="";}1' | tr -s ' ' '\t' 2>/dev/null >sar.out &
i have execute above line from shell script .. but sar.out is created with ZERO bite size..
Help on that what is the problem here
Thx,
Mani (0 Replies)
Discussion started by: Mani_apr08
0 Replies
6. Shell Programming and Scripting
Hello, I am trying to run a shell script with the nohup command. The shell script takes an array of files, runs a python program on each file in a loop, and appends the output to a file. This works fine on the server, but if I try to use the nohup command it does not work.
---
#!/bin/sh... (10 Replies)
Discussion started by: ricitron
10 Replies
7. Shell Programming and Scripting
i want use ssh on the host01 to execute autoexec.sh on the host02 like following :
host01> ssh host02 autoexec.sh
autoexec.sh include nohup command like follwing :
nohup /home/jack/deletedata.sh &
after i execute ssh host02 autoexec.sh one the host01. i can't found deletedata.sh... (1 Reply)
Discussion started by: orablue
1 Replies
8. Shell Programming and Scripting
hi ,
how do i interact with the shell prompt.
i need no. of args to be dynamic
e.g
$> type the no of args: <input from keyboard>
Enter the 1 st arg : <input from keyboard>
Enter the 2nd arg : <input from keyboard>
.........
.........
let me know how to do it ... (1 Reply)
Discussion started by: adityamahi
1 Replies
9. Shell Programming and Scripting
How do I place the result of a shell command into a variable. I would like to save the pwd in $DIR. I tried...
pwd | $DIR
$DIR < pwd
DIR=pwd
thanks! jz (2 Replies)
Discussion started by: jwzumwalt
2 Replies
10. UNIX for Dummies Questions & Answers
I'm trying to nohup a job that executes a remote shell on another host but it breaks as soon as I launch it, and I get the following back to my terminal.
+ Stopped (tty input) nohup remsh target_host -l user "ls /proj"
This is the command I'm running.
nohup remsh target_host -l user "ls... (2 Replies)
Discussion started by: tavaresd
2 Replies