04-03-2008
Hi,
when i am trying to do this i am getting the following error
ftp -nv $hostname << END
quote user $UID
quote pass $pwd
binary
put $source_file
rc=$?
echo "Return Code:$rc"
if [ $rc -ne 0 ]
then
echo "$ScriptName: Error in ftp the file $SRC_FILE to $DEST_HOSTS"
exit 1
fi
quit
END
error------->220 $hostname FTP server (SunOS 5.8) ready.
331 Password required for $UID.
230 User $UID logged in.
200 Type set to I.
?Invalid command
?Invalid command
?Invalid command
?Invalid command
?Invalid command
?Invalid command
?Invalid command
221 Goodbye.
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Does anyone know what the return code will be if an ftp fails because the /var/tmp filesystem is full?
AIX 4.3 (1 Reply)
Discussion started by: lawadm1
1 Replies
2. Shell Programming and Scripting
I am using the following code in my shell script
list=`sqlplus -s $user/$pwd@$dbms<<EOF
WHENEVER SQLERROR EXIT SQL.SQLCODE
set pagesize 0 feedback off verify off heading off echo off
select * from control_tbl
where src_nm=$3
and extrct_nm=$4;
exit SQL.SQLCODE;
EOF`
ERROR=$?... (1 Reply)
Discussion started by: Vikas Sood
1 Replies
3. Programming
Hi,
From within my C++ program, I fork a child process and execl an ftp session (solaris), like this :
std::string szStartCmd = "ftp -i -n -v 192.168.149.31";
int nExecRes = execl("/bin/sh", "sh", "-c", szStartCmd.c_str(), (char *)0);
I use 2 pipes to communicate between my... (7 Replies)
Discussion started by: KittyJ
7 Replies
4. UNIX for Dummies Questions & Answers
Hi All,
I have a problem to identify the error code thrown by FTP Server while uploading files.
The message is : ftp return 32.
I couldn't find out what is the meaning of that. :confused:
OS is Sun Solaris 2.10.
Anyone can help?
Thanks a lot (1 Reply)
Discussion started by: wilsonSurya
1 Replies
5. Shell Programming and Scripting
I have a automated FTP script that gets a file using mget. I am using mget because the date will change on the file frequently. The mget works, however if I incorrectly type the file (e.g. if I want to get /dog123 and I enter /dg*) I do not receive and error code from in the FTP session. The... (1 Reply)
Discussion started by: dog123
1 Replies
6. UNIX Desktop Questions & Answers
below is my code , but for some reason the return part is not working, only file transfer is happening and no exit status is checked .please me help me to fix this code
#!/bin/sh
#set -vx
ftp -nv sitelocation << !
user username password
lcd localdir
cd /remote dir
mget *.*
... (4 Replies)
Discussion started by: gwrm
4 Replies
7. Shell Programming and Scripting
Hi,
I would like to compare 2 files, and have a return code write to a file.
regardless of the files contents are the same the code should be writing to a file (if both files contents are same then return code 0).
A simple example will be great :)
Thanks (3 Replies)
Discussion started by: khchong
3 Replies
8. Shell Programming and Scripting
Hi
I am executing database backup via shell script (Korn). The backup log is long, but I would like to capture only the last line so I can send an email if it fails
Example of failed backup (only last 3 lines)
BR0056I End of database backup: bejbofoh.aff 2012-07-26 07.31.21
BR0280I... (7 Replies)
Discussion started by: nimo
7 Replies
9. Shell Programming and Scripting
is it possible to capture the 3 digit return code of ftp commands in a local variable inside a shell script?
Code:
ftp remoteserver << EOFTP
quote USER uid
quote PASS pass
prompt
cd remote_directory
mput file.txt
bye
EOFTP
in the above script, if cd ... (4 Replies)
Discussion started by: Little
4 Replies
10. Shell Programming and Scripting
I am using the below code to ftp file onto another server
FTP_LOG_FILE=${CURR_PRG_NAME}- ${FTP_FILE}-`date +%Y%m%d%H%M%S`.log
ftp -ivn ${FTP_HOST} ${FTP_PORT} << ENDFTP >> ${EDI_LOG_DIR}/${FTP_LOG_FILE} 2>&1
user ${FTP_USER} ${FTP_PSWD}
lcd... (2 Replies)
Discussion started by: akashdeepak
2 Replies
LEARN ABOUT PHP
cairostatus
CAIROSTATUS(3) 1 CAIROSTATUS(3)
The CairoStatus class
INTRODUCTION
CairoStatus is used to indicate errors that can occur when using Cairo. In some cases it is returned directly by functions. but when using
CairoContext, the last error, if any, is stored in the object and can be retrieved with CairoContext::status or cairo_status(3). New
entries may be added in future versions.
Use Cairo::statusToString or cairo_status_to_string(3) to get a human-readable representation of an error message.
CLASS SYNOPSIS
CairoStatus
CairoStatus
Constants
o const integer$CairoStatus::SUCCESS0
o const integer$CairoStatus::NO_MEMORY1
o const integer$CairoStatus::INVALID_RESTORE2
o const integer$CairoStatus::INVALID_POP_GROUP3
o const integer$CairoStatus::NO_CURRENT_POINT4
o const integer$CairoStatus::INVALID_MATRIX5
o const integer$CairoStatus::INVALID_STATUS6
o const integer$CairoStatus::NULL_POINTER7
o const integer$CairoStatus::INVALID_STRING8
o const integer$CairoStatus::INVALID_PATH_DATA9
o const integer$CairoStatus::READ_ERROR10
o const integer$CairoStatus::WRITE_ERROR11
o const integer$CairoStatus::SURFACE_FINISHED12
o const integer$CairoStatus::SURFACE_TYPE_MISMATCH13
o const integer$CairoStatus::PATTERN_TYPE_MISMATCH14
o const integer$CairoStatus::INVALID_CONTENT15
o const integer$CairoStatus::INVALID_FORMAT16
o const integer$CairoStatus::INVALID_VISUAL17
o const integer$CairoStatus::FILE_NOT_FOUND18
o const integer$CairoStatus::INVALID_DASH19
o const integer$CairoStatus::INVALID_DSC_COMMENT20
o const integer$CairoStatus::INVALID_INDEX21
o const integer$CairoStatus::CLIP_NOT_REPRESENTABLE22
o const integer$CairoStatus::TEMP_FILE_ERROR23
o const integer$CairoStatus::INVALID_STRIDE24
PREDEFINED CONSTANTS
o CairoStatus::SUCCESS -No error has occurred
o CairoStatus::NO_MEMORY -Out of memory
o CairoStatus::INVALID_RESTORE -cairo_restore(3) called without matching cairo_save(3)
o CairoStatus::INVALID_POP_GROUP -No saved group to pop
o CairoStatus::NO_CURRENT_POINT -No current point defined
o CairoStatus::INVALID_MATRIX -Invalid matrix (not invertible)
o CairoStatus::INVALID_STATUS -Invalid value for an input CairoStatus>
o CairoStatus::NULL_POINTER -Null pointer
o CairoStatus::INVALID_STRING -Input string not valid UTF-8 string
o CairoStatus::INVALID_PATH_DATA -Input path data not valid
o CairoStatus::READ_ERROR -Error while reading from input stream
o CairoStatus::WRITE_ERROR -Error while writing to output stream
o CairoStatus::SURFACE_FINISHED -Target surface has been finished
o CairoStatus::SURFACE_TYPE_MISMATCH -The surface type is not appropriate for the operation
o CairoStatus::PATTERN_TYPE_MISMATCH -The pattern type is not appropriate for the operation
o CairoStatus::INVALID_CONTENT -Invalid value for an input CairoContent
o CairoStatus::INVALID_FORMAT -Invalid value for an input CairoFormat
o CairoStatus::INVALID_VISUAL -Invalid value for an input Visual
o CairoStatus::FILE_NOT_FOUND -File not found
o CairoStatus::INVALID_DASH -Invalid value for a dash setting
o CairoStatus::INVALID_DSC_COMMENT -Invalid value for a DSC comment
o CairoStatus::INVALID_INDEX -Invalid index passed to getter
o CairoStatus::CLIP_NOT_REPRESENTABLE -Clip region not representable in desired format
o CairoStatus::TEMP_FILE_ERROR -Error creating or writing to a temporary file
o CairoStatus::INVALID_STRIDE -Invalid value for CairoStride
PHP Documentation Group CAIROSTATUS(3)