I have a script which connects to remote server and ftp the files
It works fine, however if there is any failure in ftp connection can it be handled???
ftp log
ftp session start time is: Thu Jun 19 00:00:02 BST 2008
Not connected.
Not connected.
Interactive mode off.
Not connected.... (1 Reply)
Hi,
In below code, i am expecting the output has
Bye
Bye
But i am getting has
Bye
Hi
Code:
#!/usr/bin/bash
var="Hi"
cat txt.txt | while read var1
do
next="Bye"
case $var in
Hi) (1 Reply)
Hi ,
Can any one tell me is there any standard method to track errors during sftp ?
using which command i can track sftp errors ? i tried using echo $? .
Most of the times i am getting error number 127 ,1, 255. whether it is constant numbers ?
Please help me out. Thanks in advance (2 Replies)
Helo Experts,
I need a help in handling errors in shell script, wants my errors displayed in text file instead of command window..
My shell script is here;
cd /cygdrive/s/Files
for FILES in ./*.*
do
temp=`basename $FILES`
if cp $FILES /cygdrive/r/CopyFile1/$FILES; then
echo "copy... (5 Replies)
I have this segment of code :
cmd = "finger -m " $1 " 2>/dev/null | head -1"
cmd | getline userinfo
close(cmd)
Sometimes finger returns no such user when given a user id.
With the redirection to the default trash file i am getting rid of any screen "finger:no such user" messages.
I also want... (2 Replies)
Hi,
I need your guys help again. I run a script which check for some process status in a loop. when i check the process some of the process could throw an error, how can i check that inside my script.
Thanks,
RR (3 Replies)
I have a PERL command line embedded in a UNIX script. The script doesn't handle errors coming out of this command. I'm processing large files and occassionally I run out of disk space and end up with half a file.
perl -p -e 's/\n/\r\n/g' < TR_TMP_$4 > $4
How do I handle errors coming out... (1 Reply)
Below code works for different databases i.e. MYSQL and ORACLE
The problem is for MYSQL in Block: if ; $? taking value accordingly but in case of ORACLE $? is always taking this value as zero (0).
That is the reason in Oracle it always going in else Block in any case.. :(
and in case of ... (4 Replies)
Hello fellow UNIX gurus :)
I have a problem regarding the script below:
# Variables used in this shell.
power=0 # Stores squared integer
total=0 # Sum of all squared integers
num=0 # Stores command line arguements
# Provides error handling if command line... (5 Replies)
Hi Guys,
I got a csv with pipe delimted file and i want to check second column of the file has any alpha character becuase I am expecting only number in that,
and if any alpha characters then it should throw an error
Thanks in advance (1 Reply)
Discussion started by: Rizzu155
1 Replies
LEARN ABOUT SUNOS
slp_strerror
slp_strerror(3SLP) Service Location Protocol Library Functions slp_strerror(3SLP)NAME
slp_strerror - map SLP error codes to messages
SYNOPSIS
#include <slp.h>
const char* slp_strerror(SLPError err_code);
DESCRIPTION
The slp_strerror() function maps err_code to a string explanation of the error. The returned string is owned by the library and must not be
freed.
PARAMETERS
err_code An SLP error code.
ERRORS
This function or its callback may return any SLP error code. See the ERRORS section in slp_api(3SLP).
EXAMPLES
Example 1: Using slp_sterror()
The following example returns the message that corresponds to the error code:
SLPError error;
const char* msg;
msg = slp_streerror(err);
ENVIRONMENT VARIABLES
SLP_CONF_FILE When set, use this file for configuration.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWslpu |
+-----------------------------+-----------------------------+
SEE ALSO slpd(1M), slp_api(3SLP), slp.conf(4), slpd.reg(4), attributes(5)
System Administration Guide: Network Services
Kempf, J. and Guttman, E. RFC 2614, An API for Service Location. The Internet Society. June 1999.
SunOS 5.10 16 Jan 2003 slp_strerror(3SLP)