11-06-2013
If its the code you submitted above that is executed, you would have to explain to me how you have the 2 commands running ( not even mentionning background...)... Truely it puzzles me
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
i have a script called server.sh.
how to run this script in backgroung using nohup command (5 Replies)
Discussion started by: ali560045
5 Replies
2. UNIX for Dummies Questions & Answers
Gurus,
Pls. help on this to run the script in background.
I have a script to run the informatica workflows using PMCMD in script.
Say the script name is test.sh & Parameters to the script is Y Y Y Y
The no of parameters to the bove script is 4. all are going to be a flags. Each flag will... (2 Replies)
Discussion started by: prabhutkl
2 Replies
3. Shell Programming and Scripting
Hi,
I was writing a script for backup,however i stumbled upon this.( As i mentioned in my earlier posts iam a beginner in shell scripting).
Here is a piece of code
case $DB_STAT in
OFFLINE)
echo "Service $SID currently $DB_STAT"
... (1 Reply)
Discussion started by: maverick_here
1 Replies
4. UNIX for Advanced & Expert Users
When I run the following snippet in background
#!/bin/ksh
while
do
echo "$i"
sleep 10
i=`expr $i + 1`
done
My job got stopped and it says like + Stopped (SIGTTOU) ex1 &
I did "stty tostop" as suggested in many of the post but still not working... (3 Replies)
Discussion started by: shahnazurs
3 Replies
5. Solaris
Hi,
I need to establish a procedure that will start an application in background each time my remote Solaris server is (re)started. This would be a kind of daemon. I am no sysadmin expert, so I am looking for pointers.
How should I proceed? What are the main steps?
Thanks,
JVerstry (9 Replies)
Discussion started by: JVerstry
9 Replies
6. Shell Programming and Scripting
Hello, I was trying to make some processes to run at background and went to a problem.
First I tried just to loop in one line something like this:
for i in {1..10}; do echo 'hello world' &; done;
but it pops a syntax error, so I tried several ways to fix it but wasn't able to understand... (2 Replies)
Discussion started by: Rash
2 Replies
7. UNIX for Advanced & Expert Users
I want to know what happens when you run a shell builtin or an external script, vs an external binary. For example: ls uses stat() etc... with details that are as simple as possible, I am not a programmer, I am a sys admin. (3 Replies)
Discussion started by: glev2005
3 Replies
8. Solaris
hi all
i am running following command
ufsdump 0ubf 512 /dev/rmt/0cbn /database/backup2/rman_backup/level1 >> /database/backup2/backup_tape/level1_rman_03aug12 2>&1;
i want to run it in background how can i do it
in this i am generating logs for backup.
the problem occurs when i am... (3 Replies)
Discussion started by: nikhil kasar
3 Replies
9. Shell Programming and Scripting
Hi,
I wrote a KSH script and running it on HP-UX machine
I am running one script in background.
My script is at location
$HOME/myScript/test/background_sh
When I view my script in background with psu commend
> psu | grep background_sh
I see following output
UID PID PPID C ... (1 Reply)
Discussion started by: vaibhav
1 Replies
10. UNIX for Beginners Questions & Answers
Hi,
I have this simple c program that creates duplicate process with fork():
#include <sys/types.h>
main()
{
if (fork() == 0)
while(1);
else
while(1);
}
I tried running it in the background
gcc -o test first.c
test &
And I got this list of running process: (4 Replies)
Discussion started by: uniran
4 Replies
rc0(8) System Manager's Manual rc0(8)
NAME
rc0 - Runs command script executed when stopping the system
SYNOPSIS
rc0
DESCRIPTION
The rc0 script contains run commands that enable a smooth shutdown and bring the system to a single-user state; run levels 0 and s. In
addition to commands listed in within the script itself, rc0 contains instructions to run commands found in the /sbin/rc0.d directory. The
script defines the conditions under which the commands execute; some commands run if the system is being shut down while others run if the
system is being shut down and rebooted to single user.
By convention, files in the /sbin/rc0.d directory begin with either the letter "K" or the letter "S" and are followed by a two-digit number
and a filename, for example: K00enlogin K05lpd K60cron K30nfs
In general, the system starts commands that begin with the letter "S" and stops commands that begin with the letter "K." The numbering of
commands in the /sbin/rc0.d directory is important since the numbers are sorted and the commands are run in ascending order. Files in the
/sbin/rc0.d directory are normally links to files in the /etc/init.d directory.
An entry in the inittab file causes the system to execute the rc0 script, for example: ss:Ss:wait:/sbin/rc0 shutdown < /dev/console >
/dev/console 2>&1 s0:0:wait:/sbin/rc0 off < /dev/console > /dev/console 2>&1
The following operations are typical of those that result from executing the rc0 script and the commands located in the /sbin/rc0.d direc-
tory: Notify users that the system is shutting down. Sync the disks Stop system services and daemons Stop processes Kill processes Unmount
file systems Invoke init if the system is being shut down to single user
The killall command sends a SIGTERM signal to stop running processes; SIGKILL follows to kill all processes except the process which initi-
ated the call. The umount -a command unmounts all file systems except the root file system.
FILES
Specifies the command path Specifies the directory of commands that corresponds to the run level
RELATED INFORMATION
Commands: init(8), killall(8), rc2(8), rc3(8), shutdown(8) delim off
rc0(8)