The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
why the below script is not working ., konankir Shell Programming and Scripting 14 03-27-2008 04:32 PM
script to send command periodically to remote server sayeo Shell Programming and Scripting 2 03-17-2008 03:42 AM
How to periodically execute a function in C ?? RipClaw High Level Programming 24 12-27-2007 12:19 AM
Pls. Help my script not working as it should cocoabeauty1 Shell Programming and Scripting 1 07-28-2007 06:11 PM
Periodically terminals stop responding vpanag SCO 2 11-15-2006 03:08 AM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 06-09-2006
lf398 lf398 is offline
Registered User
  
 

Join Date: Jun 2006
Posts: 1
script working periodically

We have a strange problem that started happening a few months ago. We have a unix script being called from within a microfocus cobol program using the call "SYSTEM" cobol command. The problem is sometimes the script will run, sometimes it wont - without us changing anything! The other strange thing is that we have multiple other cobol programs calling the same script but with a different passed parameter and those ALWAYS work!

The one that randomly fails is :

CALL "SYSTEM" using "$LAWDIR/interface/law_intf/lawson_xfer apcheck".

one of the ones that ALWAYS work is
CALL "SYSTEM" using "$LAWDIR/interface/law_intf/lawson_xfer achremit".

The script being called is lawson_xfer and the parameter is the interface name.
When it errors on us, it gives us the error:

sh: 0403-057 Syntax error at line 1 : `(' is not expected.
$LAWDIR/interface/law_intf/lawson_xfer apcheck

Again, sometimes (but rarely) it will run fine without the error and we dont change a thing. Any ideas on why this would happen, especially where it will work every once in a while?
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 06:34 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0