Sponsored Content
Full Discussion: How to ignore Netout Error.?
Homework and Emergencies Emergency UNIX and Linux Support How to ignore Netout Error.? Post 302868835 by Venkatesh1 on Tuesday 29th of October 2013 02:13:26 AM
Old 10-29-2013
How to ignore Netout Error.?

Hi All ,

Am using unix KSH .
I would like to clarify two doubts.
  1. Whenever am transfering the zero size file am getting the warning message netout.
  2. files will be transferred to target server or not?



I have used the code as
Code:
if [ "${PWD}" = "${PWD}" ]
then
VAR="ftp.sh -c put ${FILE} ${FILE} ${IP_ADDR} ${USER}
${PASSWD} ${USER_DIR}_tmp ${LOG}"
fi
${VAR} 2> ${ERR}
if [ $? -ne 0 ]
then
echo  "Error running ftp.sh to send ${FILE} - see ${LOG}"
else
echo  "Successfully sent "
..
..
..

I would like to know
  1. what is the value in VAR variable after transfering zero size files.
  2. how to ignore this warning instead ${ERR} use /dev/null ?
  3. whenever am transferring zero size file am getting the error running ftp.sh to send ${FILE} - see ${LOG}" ( ex: if am transferring zero size files in code goes to else part i.e successfully sent )

Last edited by Don Cragun; 10-29-2013 at 05:27 AM.. Reason: Removed more spurious formatting
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to ignore '.' files

I'm running Fedora Core 6 as an FTP server on a powerMac G4... I'm trying to create a script to remove files older than 3 days... I'm able to find all data older than 3 days but it finds hidden files such as /home/ftp/goossens/.canna /home/ftp/goossens/.kde... (4 Replies)
Discussion started by: James_UK
4 Replies

2. UNIX for Dummies Questions & Answers

please ignore this....

Most of the people think that they can not use Unix as desktop. By this poll we gone tell them that we not just use Unix as desktop but also love different display managers like GNOME, KDE etc..... (1 Reply)
Discussion started by: ynilesh
1 Replies

3. Shell Programming and Scripting

Ignore error and get ls file count

I am trying to figure out how to run the below variable assignment in a shell script so that it will snuff the "no such file or directory" and just pass the count value. That way I can do a valid compare in the next step. num=`ls /appsrv/tmp/PrjRefData_20090428-*_in.xml | wc -l` ls:... (3 Replies)
Discussion started by: lynchmob
3 Replies

4. Shell Programming and Scripting

how to ignore case

Hi All, The means I use to ignore case, as an example is the following snippet: It should accept any oof the following y|Y|YES|Yes|n|N|NO|No echo "Enter Y/N to continue: " read choice; (3 Replies)
Discussion started by: raghur77
3 Replies

5. Shell Programming and Scripting

netout: write returned 0?

Hi , When i try to ftp a zero byte file across through a shell script It gives me the mesaage netout: write returned 0? Is there any way i can supress this message as it does not affect the execution of the script Thanks (1 Reply)
Discussion started by: lifzgud
1 Replies

6. Shell Programming and Scripting

ls ignore pattern

Hi, I have a FTP script that check for ".done" files in the remote path and the "get" the corresponding data files. Here's how it does..... First it list all the *.done file as below: ls *.done And then it picks one file and get the corresponding data file. After that it... (3 Replies)
Discussion started by: dips_ag
3 Replies

7. UNIX for Dummies Questions & Answers

cat : ignore I/O error

Hello, I have to backup some cds but I get an I/O error message when I hit a bad sector (using the command cat) and my question is : what can I do to force the system to ignore theses errors (or all kind of errors) and let the process keep going? (sorry for any eventuals language errors, I am... (6 Replies)
Discussion started by: Actraiser47
6 Replies

8. Shell Programming and Scripting

How to ignore first or last parameter

Can someone help me of doing something like this send.sh #!/bin/bash for last; do true; done echo $* | gammu sendsms TEXT $last every thing is good except that when i launch the script like this ./send.sh This is the message i want to send +63922XXXXXXX it turned out the message of... (2 Replies)
Discussion started by: arturo322
2 Replies

9. UNIX for Advanced & Expert Users

Netout: write returned 0?

Hi Am Using unix Aix When i ftp the zero size file getting the netout: write returned 0? (1 Reply)
Discussion started by: Venkatesh1
1 Replies

10. Shell Programming and Scripting

How to ignore error in command in bash script?

Hello, i have bash script where im cycling some command for different lines in external file. example: while read domain;do nslookupout=$(nslookup -type=ns $domain) || true another commands done < filenamewithdomains i added: || true after the command in belief it will just skip... (6 Replies)
Discussion started by: postcd
6 Replies
CUBRID_ERROR_MSG(3)							 1						       CUBRID_ERROR_MSG(3)

cubrid_error_msg - Get last error message for the most recent function call

SYNOPSIS
string cubrid_error_msg (void ) DESCRIPTION
The cubrid_error_msg(3) function is used to get the error message that occurred during the use of CUBRID API. Usually, it gets error mes- sage when API returns false as its return value. PARAMETERS
This function has no parameters. RETURN VALUES
Error message that occurred. EXAMPLES
Example #1 cubrid_error_msg(3) example <?php $conn = cubrid_connect("localhost", 33000, "demodb"); if (!@cubrid_schema($conn, 100000)) { printf("Error facility: %d Error code: %d Error msg: %s ", cubrid_error_code_facility(), cubrid_error_code(), cubrid_error_msg()); cubrid_disconnect($conn); exit; } ?> The above example will output: Error facility: 2 Error code: -10015 Error msg: Invalid T_CCI_SCH_TYPE value SEE ALSO
cubrid_error_code(3), cubrid_error_code_facility(3). PHP Documentation Group CUBRID_ERROR_MSG(3)
All times are GMT -4. The time now is 04:25 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy