AIX stop script not working


 
Thread Tools Search this Thread
Operating Systems AIX AIX stop script not working
# 1  
Old 12-09-2010
AIX stop script not working

I have a AIX stop script file "stop_service_mail_DE_P" which is as follwoing
Code:
 
(
if [ -e "stopfileparam" ]
then
sleepforvalue=$(cat stopfileparam|grep sleepperiod|awk -F= '{print $2}')
targetdir=$(cat stopfileparam|grep targetdir|awk -F= '{print $2}')
touch $targetdir/stop_b2bgate_service_mail_de_p_p
sleep $sleepforvalue
rm $targetdir/stop_b2bgate_service_mail_de_p_p
else
echo Please ensure that stopfileparam file is in the current directory
fi)&

But when I try to run this script file it is not working which used to work before. Can anyone please help me on this

Last edited by Scott; 12-09-2010 at 03:56 AM.. Reason: Please use code tags
# 2  
Old 12-09-2010
So, what changed?

What is the content of stopfileparam?

What are the symptoms? Just "...it is not working which used to work before." doesn't really help.




Robin
Liverpool/Blackburn
UK
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

VncViewer, why certain keys stop working?

Hello All, My question is about VNC'ing to a Linux server on the network. MY PC: OpenSuSE 11.4 (i586) Remote Server: OpenSuSE 12.3 (x86_64) ### UNAME: # uname -a Linux localhost.foo.bar 3.7.10-1.1-desktop #1 SMP PREEMPT Thu Feb 28 15:06:29 UTC 2013 (82d3f21) x86_64 x86_64 x86_64... (1 Reply)
Discussion started by: mrm5102
1 Replies

2. UNIX for Dummies Questions & Answers

NIS stop working... pls. help.

I am on the NIS client server. when I do ypwhich. I get this err.msg. > ypwhich Domain feed.oca.ipx.com not bound on svrnyP1 Any idea. I am able to ping the NIS master server. On the /var/adm/messages. I see this... Oct 16 12:52:36 svrnyP1 ypbind: NIS server not... (2 Replies)
Discussion started by: samnyc
2 Replies

3. Shell Programming and Scripting

How to stop nohup which is working background

Please I have run a background script using nohup please tell me way to stop this. Thanks in Advance (4 Replies)
Discussion started by: mumakhij
4 Replies

4. Shell Programming and Scripting

Sed script not working properly on Solaris (works fine on AIX)?

Hi, I have a problem with a SED script that works fine on AIX but does not work properly on a Solaris system. The ksh script executes the SED and puts the output in HTML in tables. But the layout of the output in HTML is not shown correctly(no tables, no color). Can anyone tell if there is... (7 Replies)
Discussion started by: Faith111
7 Replies

5. Shell Programming and Scripting

Script working in AIX, but giving error in SOLARIS

Hi, My script is working fine in AIX but throwing an error in SOLARIS system. Here is the error message that I am getting when calculating the elapsed time: /home/x772525/FindETA.sh: start_mins = *60 + : syntax error . ((start_mins = $(expr substr "$j" 1 2)*60 + $(expr substr "$j" 4... (6 Replies)
Discussion started by: ajayakunuri
6 Replies

6. AIX

Shell script stop working

I have a strange problem. I have the following in a cron to find files older than a day. find /dir1/dir2/ ! -name . -prune -name "s*.txt" -type f -mtime +1 -exec echo {} \; | wc -w It was working fine for the last few days now it suddenly stopped working. I can clearly see files in the... (5 Replies)
Discussion started by: bbbngowc
5 Replies

7. Solaris

Keys on Keyboard stop working

Hello, I hope I put this in the right forum... I searched for similar threads, but I couldn't find any that seem to deal with the problem I am having. My workplace is using (among other Solaris-machines) Dell Dimension T3500 as workstations (running Solaris 10 X86 10/09 u8,... (0 Replies)
Discussion started by: areichart
0 Replies

8. Solaris

numpad stop working ?

I'm running Solaris 10 5/09 X86 suddenly numpad stop working it's working on jds dt logon screen but in not working in the os only right enter key is working any ideas thanks in advance (2 Replies)
Discussion started by: h@foorsa.biz
2 Replies

9. UNIX for Dummies Questions & Answers

What can make Cronjobs stop working??

Up until two days ago they were working junt fine, then stoped working with out me doing anything. Yesterday they started working again...and then stoped working, at about the same time of day that they stoped working the day before. service crond restart did nothing. All SSH signs point to... (0 Replies)
Discussion started by: Nintendo
0 Replies
Login or Register to Ask a Question