01-11-2007
Stopping a command in between
Hi
Is it possible to stop a command executing after certain time?
I have this command say prstat which keeps on giving the values etc of the processes after every 1 sec(refreshes the screen)
What I want is just stop the execution after first screen
Since I have written this command in shell script, I am not sure how I can stop it so that my script continues on the next line(right now it keeps on waiting for the output of this command)
Can someone help?
San
9 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Im running a solaris 9 system and keep getting this message: Request to LXKF894CB (unknown printer) from zion.
This happen because there was a mis configured printer and a job was submitted to it. I fix the printer issue but this message keeps repeating and the PID keeps going up. How can i... (5 Replies)
Discussion started by: meyersp
5 Replies
2. Shell Programming and Scripting
i want to stop a script from running after one minute, using the sleep command, and then kill the process. anyhelp with this. (2 Replies)
Discussion started by: AtomJ22
2 Replies
3. UNIX for Advanced & Expert Users
hi,
Can any plz tell what is the command for stopping a processor? suppose a system is accessing 10 processors and we want to stop the 3rd & 6th processor then whats the command in Unix?
thank u (2 Replies)
Discussion started by: nm_virtual
2 Replies
4. UNIX for Dummies Questions & Answers
Hi,
Two things really:
1) can you input a code to pause a program until a key is pressed?
2) can you stop a command during a cycle? (7 Replies)
Discussion started by: chapmana
7 Replies
5. Shell Programming and Scripting
Hi
I want to stop a process using a shell script. how do i do that?
ie, to simulate ps -ef|grep Process name
get the process id and kill -9 process id
plz help... (4 Replies)
Discussion started by: gopsman
4 Replies
6. UNIX for Dummies Questions & Answers
This is simple for an experianced scripter but that is not what I am :)
if ; then
echo -==Test Passed $3 $4==- >> $1$2
nohup $6$7 & >> $1$2
else
echo -==$8==- >> $1$9
echo -==$8==- >> $1$2
fi
In the else step I also want to stop the script from moving on. ... (15 Replies)
Discussion started by: jadionne
15 Replies
7. Red Hat
Hi,
on server Red Hat Enterprise Linux AS release 3, I am getting the mail "you have mail" can any body suggest how to stop this? mail are getting generated in below path.
/var/spool/postfix/maildrop, due to which heavy file are getting generated.
though sendmail service is stopped.
... (0 Replies)
Discussion started by: manoj.solaris
0 Replies
8. UNIX for Advanced & Expert Users
I have initiated a tunnel for vncserver. now i want to stop it. is there any way except sleep option? (2 Replies)
Discussion started by: majid.merkava
2 Replies
9. Shell Programming and Scripting
Hi,
I have scheduled one job in crontab. I want to stop the job automatically after some time of its execution without killing it.
Could i archive the above? (8 Replies)
Discussion started by: mehulleo
8 Replies
LEARN ABOUT PLAN9
asadmin-stop-appserv
asadmin-stop-appserv(1AS) User Commands asadmin-stop-appserv(1AS)
NAME
asadmin-stop-appserv, stop-appserv - stops the domains inthe specified directory
SYNOPSIS
stop-appserv [--domaindir install_dir/domains] [--terse=false] [--echo=false]
This command has been deprecated. Please use stop-domain to stop the domains in the specified or default domains directory. stop-appserv
stops the domains in the specified or default domains directory. If the domains directory is not specified, the domains in the default
domains directory are stopped. The default domains directory is install_dir/domains. This command can only be run locally.
OPTIONS
--domaindir directory where the domains are stopped. If specified, path must be accessible in the filesystem. If not specified,
the domain is stopped in the default install_dir/domains directory.
--terse indicates that any output data must be very concise, typically avoiding human-friendly sentences and favoring well-
formatted data for consumption by a script. Default is false.
--echo setting to true will echo the command line statement on the standard output. Default is false.
EXIT STATUS
0 command executed successfully
1 error in executing the command
asadmin-create-domain(1AS), asadmin-start-domain(1AS), asadmin-stop-domain(1AS), asadmin-delete-domain(1AS), asadmin-list-domains(1AS)
J2EE 1.4 SDK March 2004 asadmin-stop-appserv(1AS)