I have written the below PERL script to reprocess messages from a failure queue.
It basically browses all the messages in the failure queue to individual files in a directory and then scans those files to determine the originating queue. The script will then move each message in turn from...
thanks for the suggestion, but it still hangs. I can keep pressing enter and all it does is line feed down the terminal instead of returning to the main menu.
Hi,
I have a sub function called pressEnter within my perl menu script which basically means that the script will await an interaction from the user before moving on.
Unfortunately when the script goes into pressEnter it just hangs (even if you press enter!!).
Any ideas on what could...
Hi,
I have the below script that should take the command line option and run the desired script on another server. Only it doesn't seem to run the function, infact it just returns back to the command line.
case $1 in
1) msgbacklog() ;;
2) jobstatus() ;;
esac...
Thanks feherke,
That works! And yes you were right I did mean until 2692507 and not 64.
If you have a moment though could you please explain to me why your syntax resulted in it to end at 2692507? Is it because even though I am "slurping" it still reads it line by line (as opposed to one...
Hi,
I have a PERL script which executes a script which interrogates a database on another server and produces an output file (an example of this is at the bottom). Of this file I only want a section of the data, from USER until the last number. I have written the code below but when run it...
Thanks for the post prex1, although a straight copy and paste of your code didn't work. Your suggestion did allow me to question the point of the loop and cut the size of the script down.
It's probably just the way I worded it, but basically the reason why the script didn't exit was due to the...
Hi,
I'm trying to wrtie a menu perl script which will allow users to connect to different servers from a management server without having to know the long server name.
I have written the below code, but when I execute it I manage to get through the first 2 menus but it doesn't exit once...
Hi,
I'm trying to select a substring within a column but using another string as the starting point. This is because the position of the string in the column may change.
i.e.
select substr(<column name>,<reference string>,3) from table;
ABCDEFGHIJKLMNOPMSGNO123ABCDEFGHIJKL
The refence...
Just a quick question.
What is the difference between executing a script command
using
./usr/local/blah/blah/blah.ksh
and
/usr/local/blah/blah/blah.ksh
Thanks
Chris
Morning,
i'm currently having trouble when passing a value into a variable from another file. I am currently using the below example:
function Command
{
for command in `cat proclst.tmp`
do
set $command
exec $command
done
}
The line I am trying to pass has a space delimiter (and is...
Afternoon all,
Trying to run an IF statement within a script in KSH. Basically I want it to check whether a variable has a value set or whether it is blank.
I currently have the below, but needless to say it's not working. Can anyone spot where i'm going wrong?
If [ $FILE != '' ]
then...
Hi guys,
Just got the attached script to run, which basically sends an email to a recipitent when an error occurs, and unfortunately the output contains a space as below. Any ideas?
Database reconciliation between Tandem and Unix has failed.
Please see the attached file(s).
You can...
When using a While flow, using an argument of count, the value of the variable $count is not incrementing but instead just displaying an output of 1+1+1....
i.e.
Script:
while
[ $count -lt 10 ]
do
echo "$count"
count=`expr $count+1`
done
Output:
+ [ 1 -lt 10 ]
+ echo 1
1
+ + expr 1+1...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.