Sponsored Content
Full Discussion: script working periodically
Top Forums Shell Programming and Scripting script working periodically Post 302076165 by lf398 on Friday 9th of June 2006 08:57:19 AM
Old 06-09-2006
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?
 

10 More Discussions You Might Find Interesting

1. Programming

How to periodically execute a function in C ??

Hi, I am looking for a C library feature, to which I can say execute a function every 10 seconds. for Eg #include <timer_lib.h> fun1(){ printf("I am still cool "); } int main(){ run(10,&fun1); // Should register & execute the function fun1 every 10 seconds return 0x0; }... (24 Replies)
Discussion started by: RipClaw
24 Replies

2. Shell Programming and Scripting

script to send command periodically to remote server

Hi, I'm wondering if there's a way to send a command periodically to remote server through a script. Right now I have this: keepLooping=1 ssh user@domain while (( keepLooping == 1 )) do echo a sleep 3 done but what this does is ssh to the server, and only when the connection is... (2 Replies)
Discussion started by: sayeo
2 Replies

3. Shell Programming and Scripting

ftp script to get files periodically

Hi Folks Interesting question hope u get the ans: I have to ftp a file ABC(Timestamp) to server XYZ My script should be doing the every 2 hours. after the transfer I need to confirm whether the file ABC(timestamp) got transfer properly or not. My concern is after the "put ABC"... (7 Replies)
Discussion started by: Haque123
7 Replies

4. UNIX for Dummies Questions & Answers

getting some error periodically - sendmail

Hi all, When ever i open unix, periodically after every 3 minutes(approximately) i get the below error. "Dec 29 23:56:01 "domain name" sendmail: unable to qualify my own domain name ("domain name") -- using short name". This is interrupting me while writing a program. Please... (2 Replies)
Discussion started by: rakeshbharadwaj
2 Replies

5. Shell Programming and Scripting

Check mail periodically with tcsh

A friend of mine is switching his email from one University server to a different one. He is using the tcsh, and on his current server, the shell will tell him (when the prompt is displayed) if there is new mail. The new server, where he also has the tcsh, does not do this by default. I got him... (0 Replies)
Discussion started by: kermit
0 Replies

6. Solaris

DNS needs to be refreshed periodically to work

We are having a problem with external address being resolved. All internal addresses work fine. Refreshing the DNS server service solves the issue for a little while(I don't have an exact number on how long, <1 hour) and then eventually stops working. We use Webem to manage the build in DNS and... (2 Replies)
Discussion started by: Lespaul20
2 Replies

7. Shell Programming and Scripting

Script not working in cron but working fine manually

Help. My script is working fine when executed manually but the cron seems not to catch up the command when registered. The script is as follow: #!/bin/sh for file in file_1.txt file_2.txt file_3.txt do awk '{ print "0" }' $file > tmp.tmp mv tmp.tmp $file done And the cron... (2 Replies)
Discussion started by: jasperux
2 Replies

8. Shell Programming and Scripting

Help with script periodically pushing files from one host to another

Dear all, I would like to write a script to push periodically some downloaded files from one host to another box. Basically, I have host A downloading files. When those files are downloaded they are moved automatically to a directory called: /home/user_A/downloaded, still on host A. Then... (1 Reply)
Discussion started by: freddie50
1 Replies

9. Shell Programming and Scripting

MQ depth Periodically

Hi I am trying to a write a script which gives message queue depth for every 5 mins in a file. Commands that I use are runmqsc QM_Name display ql(*) curdepth Since I can use only MQSC commands I need help on how to fetch the output on to a file after executing display command. (3 Replies)
Discussion started by: jhilmil
3 Replies

10. Shell Programming and Scripting

Refresh Firefox tabs periodically

Hi all I'm a shell script newbie so please have some patience with me :D To my question: I wrote a simple shell script which opens a firefox instance with multiple tabs. So far, so good. But I would also like to have all these tabs automatically refreshed (let's say all 45 seconds). Is that... (1 Reply)
Discussion started by: NemesisBBB
1 Replies
DH_AUTO_CONFIGURE(1)						     Debhelper						      DH_AUTO_CONFIGURE(1)

NAME
dh_auto_configure - automatically configure a package prior to building SYNOPSIS
dh_auto_configure [buildsystemoptions] [debhelperoptions] [--params] DESCRIPTION
dh_auto_configure is a debhelper program that tries to automatically configure a package prior to building. It does so by running the appropriate command for the build system it detects the package uses. For example, it looks for and runs a ./configure script, Makefile.PL, Build.PL, or cmake. A standard set of parameters is determined and passed to the program that is run. Some build systems, such as make, do not need a configure step; for these dh_auto_configure will exit without doing anything. This is intended to work for about 90% of packages. If it doesn't work, you're encouraged to skip using dh_auto_configure at all, and just run ./configure or its equivalent manually. OPTIONS
See "BUILD SYSTEM OPTIONS" in debhelper(7) for a list of common build system selection and control options. -- params Pass params to the program that is run, after the parameters that dh_auto_configure usually passes. For example: dh_auto_configure -- --with-foo --enable-bar SEE ALSO
debhelper(7) This program is a part of debhelper. AUTHOR
Joey Hess <joeyh@debian.org> 11.1.6ubuntu2 2018-05-10 DH_AUTO_CONFIGURE(1)
All times are GMT -4. The time now is 05:17 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy