Sponsored Content
Top Forums Shell Programming and Scripting Catching the termination of one script Post 302354276 by Ex-Capsa on Thursday 17th of September 2009 03:59:07 PM
Old 09-17-2009
Yes thank you

IJust dicovered that also. Now I have a nwe issue whit the same script

A loop that has issue :-(

Code:
MYVER=`uname -a | awk '{print $3}'`
   echo  $MYVER
{
   if  ["$MYVER" = "5.10"]
then
      /usr/sbin/svcadm disable telnet
else 
  /usr/sbin/ppadmin stop
}


Last edited by Franklin52; 09-21-2009 at 11:45 AM.. Reason: Please use code tags!
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Abnormal Termination errors

I'm having trouble with Abnormal Termination errors. What are they, what causes them and how can I prevent them from happening? Are they application specific? (2 Replies)
Discussion started by: bialsibub
2 Replies

2. UNIX for Advanced & Expert Users

Child peocess termination.

Hello all, Here is the problem: A ksh script (let's call it abc.sh) gets kicked off from a menu program using "nohup abc.sh &". The process ID of abc.sh can be recieved (pid=$!). abc.sh runs an Oracle PL/SQL script (it creates a child process). In order to stop the abc.sh (and the child)... (5 Replies)
Discussion started by: Shaz
5 Replies

3. Shell Programming and Scripting

random script termination

I'm writing a script to archive data. First, the files are all rsync'd to the archive directory via NFS mounts(I know not the most efficient, but the only choice in this situation), then I use md5sum to validate the transfers. During execution of the script, it will exit for no apparent reason. It... (6 Replies)
Discussion started by: mph
6 Replies

4. Shell Programming and Scripting

Bash: Catching the returncode from a script and using within another script?

Hello, I want to run a bash script in another bash script, depending on the returncode or exitcode. But I don't know how to handover the returncode to the second bash script!? I tried this dummy script which should return the exit code 1 #test.sh echo "test" exit 1 But... (3 Replies)
Discussion started by: ABE2202
3 Replies

5. Shell Programming and Scripting

Problem with ssh termination...

hi all, i have a situation where i run ssh command from a unix machine to execute few scripts on 2 other unix machines. my problem is, the scripts that i run will start few commands on the 2 servers and will quit....i am able to quit from the script but i have to give ctrl+c (on the... (10 Replies)
Discussion started by: niteesh_!7
10 Replies

6. Shell Programming and Scripting

Cat termination in script

So, I'm writing a shell script to help automate a process I'm doing. Basically I want to take input from the user for 2 variables, then create a file that consists of: Variable1,Variable2 Constant1 Constant2 .. Constant2000 then run an awk script. I'm pretty new to unix though, and so... (11 Replies)
Discussion started by: Parrakarry
11 Replies

7. AIX

A question about scsi termination

http://ep.yimg.com/ay/iercomputer/ibm-39j5022-ultra320-scsi-adapter-dual-channel-pci-x-fc5736-3.gif I have bought this controller. Simple and fast question: I will put on this controller a external LTO tape,which is terminated with a terminator. I have to put another terminator on PCI-controller... (1 Reply)
Discussion started by: Linusolaradm1
1 Replies

8. Shell Programming and Scripting

Script termination without pressing Enter key[nohup]

I have a script in which we have used nohup. Once script is executed it will be terminated only when enter key is pressed. I want the script to be terminated without pressing enter key nohup imqbrokerd -name user_id port 2>1 1>$home_`date` & I am a newbie to shell, Kindly please help (3 Replies)
Discussion started by: Suganbabu
3 Replies

9. Shell Programming and Scripting

Email alert after termination

I am running the gaussian program on UNIX with bash and I want to form a script that will email me once the output life terminates either "normal termination" or "false" I just started learning this last week so could you let me know how to go about this.:b: (13 Replies)
Discussion started by: Jade_Michael
13 Replies
psradm(8)						      System Manager's Manual							 psradm(8)

NAME
psradm, offline, online - Stops and starts processors in a multiprocessor system SYNOPSIS
/usr/sbin/psradm -f [-v] [[-a] [processor_id...]] /usr/sbin/psradm -n [-v] [[-a] [processor_id...]] /usr/sbin/online [-v] [processor_id...] /usr/sbin/offline [-v] [processor_id...] OPTIONS
The following options apply only to the psradm command: Specifies that all the processors except the master processor be put off line or on line. Puts the specified processor off line. Puts the specified processor on line. The following option applies to all forms of the command: Displays a message about the status of the operation performed on each processor. DESCRIPTION
On a multiprocessor system, the psradm command puts one or more processors off line (stops a processor) or on line (starts a processor). The processor_id variable specifies an integer that uniquely identifies a processor. Use the psrinfo command to display processor identi- fication numbers. The offline command puts one or more processors off line (stops a processor). If no processors are specified, all processors that are on line are stopped except the master processor. The online command puts one or more processors on line (starts a processor). If no processors are specified, all processors that are off line are started. Note that you cannot use these commands to start or stop the master processor in a multiprocessor system. You must be the root user to use this command. The /var/adm/wtmp file contains information about successful processor state transitions. RESTRICTION
Do not use the psradm command to disable CPUs when benchmarking performance, because the command does not provide an accurate reflection of the performance of a system that actually has fewer CPUs. Accurate performance results are obtained only when you disable the CPUs at the SRM console command level. EXAMPLES
The following command puts processors 2 and 3 off line: # psradm -f 2 3 The following command puts all the processors on line: # psradm -n -a The following command puts all processors on line: # online -v FILES
SEE ALSO
Commands: pset_info(1), psrinfo(1) Files: processor_sets(4) psradm(8)
All times are GMT -4. The time now is 10:07 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy