Scripting on AIX and using nohup


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Scripting on AIX and using nohup
# 1  
Old 01-13-2009
Scripting on AIX and using nohup

ok... want to start off by saying i am sorry for the ignorance... still trying to figure out the diffs between solaris and aix... and i think that is where i am running into problems... Smilie

SITTIATION:
we are doing an implementation for Oracle's CC&B... we recently switched from Solaris-SPARC-64 to AIX-5.3-IBM...

there is a .sh that needs to be run to kick off "batch-processing". that script is:
Code:
nohup threadpoolworker.sh -p DEFAULT=5 -d Y >/dev/null &

that is a direct quote from "oracle-tech support"

well to make that script run properly, you have to set all the environment properties correctly. there is a script written to do that... so... this is what i have so far in my script....

Code:
#!/bin/bash

clear #clearing screen
directory="/data1/spl/cis/CCBDEMO/bin"
startenviron="splenviron.sh -e CCBDEMO -c threadworkerstart.sh"
cd $directory
$startenviron
exit

what that does is runs the splenviron with the environment name of CCBDEMO... then it kicks off another "command" that launches the second script wich basically just kicks off the threadpoolworker.sh.

Code:
#!/bin/bash

directory="/data1/spl/cis/CCBDEMO/bin"
tpws="nohup threadpoolworker.sh -p DEFAULT=5 -d Y >/dev/null &"
cd $directory
$tpws
echo "**********************************************"
echo "** START OF THREADPOOLWORKER HAS COMPLETED. **"
echo "** PLEASE TYPE EXIT TO REMOVE YOURSELF FROM **"
echo "** THE CURRENT ENVIRONMENT SETTINGS.        **"
echo "**********************************************"


OK!!!

now... everything runs fine, and it does actually kick off... BUT! it just sits there and the second script doesn't go any further than the "nohup ....... &" it doesn't show the echo's at all... what i am thinking is that i need some way to tell it to go ahead and continue after the nohup...

how do i do that?

any and all help is appreciated... Smilie

Dagaswolf.
# 2  
Old 01-13-2009
are you guys telling me that i have stumped the guru's???

oh... one more thing that i was told to tell you all that might help... i am actually remotely connected to the server via "PUTTY"... don't know if that makes a difference or not...

Dagaswolf
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Saving nohup output to a file other than nohup.out

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

2. Shell Programming and Scripting

Need help in scripting in AIX

Hello, In a loop I am using below command for every database crsctl status res | grep -E "ora\.$DATABASE\.(.+)\.svc" and below is one of the sample output NAME=ora.sgraphut.sgraphutxdb.svc Now I want to extract just service name out of this string (that is sgraphutxdb) please help me how... (1 Reply)
Discussion started by: Vishal_dba
1 Replies

3. Shell Programming and Scripting

AIX 5.3 ksh Scripting

Hi, I posted a request for sever OS types earlier, but got no response. In an attempt to at least have a starting point, I think scaling it to one OS is preferred. Once I see the gist of it I can modify to account for different cases. I need a script that will go and check to see if an LDAP... (2 Replies)
Discussion started by: tekster2
2 Replies

4. Shell Programming and Scripting

Problem with nohup use in scripting

I am trying to execute following code: alarm_file_array="test1.alarms test2.alarms test3.alarms test4.alarms" for file in ${alarm_file_array} do nohup tail -f $file |awk 'NR>10' >> output.alarms 2>/dev/null & done Whenever it tries to execute nohup command it hangs because of the... (3 Replies)
Discussion started by: bhallarandeep
3 Replies

5. Shell Programming and Scripting

help in ksh scripting in aix

Hello gurus I am looking for a script : We need to generate a file list created by user id on a AIX box. Criteria 1: other than userid : dwimpid & aiadmin Criteria 2: Files older than 2 months ( it can be any user id ). File Path to Look: /project and /project1 Thx silu (7 Replies)
Discussion started by: silu
7 Replies

6. Shell Programming and Scripting

Help with ksh scripting in AIX

I am looking for a script which does the following Script will run daily. 1.It will get snapshot off all filesystems including nfs mounts, automounts and clearcase mounts. 2.Then it will compare new snapshot with the snapshot created in the previous run. 3.If filesystem exists in... (20 Replies)
Discussion started by: saidiya
20 Replies

7. Shell Programming and Scripting

Scripting on AIX with awk

Hi, I am very new to scripting, but I am very keen to learn. Right now, I have an input file containing the output of ps -emo THREAD (in AIX) where the lines look something like this: USER PID PPID TID ST CP PRI SC WCHAN F TT BND COMMAND root 1 ... (6 Replies)
Discussion started by: tmf33uk
6 Replies

8. AIX

scripting routing changes on aix 4.3 and 5x

Hi All, I need to script a routing changes on my aix servers. I can't use smitty, very slow. I need to delete the static routing and add a new one. I also need to change default routing. I know using route add and route delete but I think I remember that this is not enough that's why I... (2 Replies)
Discussion started by: itik
2 Replies

9. Shell Programming and Scripting

difference between AIX shell scripting and Unix shell scripting.

please give the difference between AIX shell scripting and Unix shell scripting. (2 Replies)
Discussion started by: haroonec
2 Replies

10. Shell Programming and Scripting

scripting guru's pls help me with scripting on AIX

can someone pls help me with the script for a files coming from one system to a particular directory and i want to write a script to move those files to another directory on different system by renaming the files... pls someone help me on this... thanking in anticipation.... (1 Reply)
Discussion started by: thatiprashant
1 Replies
Login or Register to Ask a Question