I tried, but then for the 'good' system I do not get my command output any more.
And for the 'bad' system I still get the error message on my screen (and it is not assigned to my $result variable).
---------- Post updated at 01:46 PM ---------- Previous update was at 01:39 PM ----------
My hostname on the other host (nbsol151) is changed to '2' now.
So it looks like I need to escape the 2$>1 somehow.
Now it did 'hostname 2' and '$>1'.
---------- Post updated at 02:31 PM ---------- Previous update was at 01:46 PM ----------
I think this will do (using /dev/null):
That produces:
Although then I do not know the reason for it not to be successful.
Hi All,
I have a log file which consists of log messages as follows ->
GLOBALCALLID_CLUSTERID_B NEXT * , O(") CHARACTER
JOINONBEHALFOF NEXT * , O(") CHARACTER
Record 1: Rejected - Error on table IFA_MMV_CDR, column CDRRECORDTYPE.... (1 Reply)
Hi,
Ho do I differentiate system call from library call?
for example if I am using chmod , how do I find out if it is a system call or library call?
Thanks
Muru (2 Replies)
Im trying to execute application and its return code is below
IF Status code=o
echo "........"
else Staus Code =-2 DJRE
then echo "......"
Can any one help me how to handle the status code and echo some message. (12 Replies)
Hi,
My name is Tex I am past 60 and in need of perl help. My hobby is genealogy and I am using a perl program to display my data on my web pages. I don't even know enough to know how to ask in the right way for the help
I need.
This program is written in perl it is open and has been updated... (2 Replies)
I want to capture actual error message in case the commands I use in my shell script fails.
For eg:
ls -l abc.txt 2>>errorlog.txt
In this case I understand the error message is written to the errorlog.txt and I assume its bacause the return code from the command ls -l abc might return 2 if... (3 Replies)
I have a Perl Script
#!/usr/local/bin/perl
$server_name = "info-xyz-05";
my $value = `/usr/bin/ssh -f $server_name /users/salesadm/MGFINFA/bridgerftpup.sh`;
The above calls a shell script on another server called bridgerftpup.sh. This script has several commands and needs to call... (2 Replies)
Hello experts,
I have a perl script which looks for the ARGV and then loads the data as per it.
Example.
#Checking the server to connect
if ($ARGV eq 'QA')
{
$ENV{"ORACLE_HOME"} = "/oracle/product/11.2.0";
$ENV{"PATH"} = "$ENV{'PATH'}:/oracle/product/11.2.0/bin";
... (1 Reply)
Hi
I have a requirement to write a script to capture all errors in a Logfile and send the file in email.
If there is any error occurred the subject of email will be ERROR , If there are no error occurred the subject of email will be SUCCESS.
So I created a Log file and put the Appropriate... (2 Replies)
i made this program but when i compile this code, compiler make this error, is an error on wait() system call but argumenti is right, or not?:
esercizio.c:80:9: error: incompatible type for argument 1 of ‘wait'
/usr/include/i386-linux-gnu/sys/wait.h:116:16: note: expected ‘__WAIT_STATUS' but... (4 Replies)