11-29-2007
FTP shell script error caturing
Hello All,
Can anyone let me know how to capure errors in shell scripting?
n even the error considerations?
Like --
- File not found
what other errors can occure in that n how those could be captured?
Im_new
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I am trying to ftp some files from a certain directory, but i got an invalid command. does anybody know why i got this error?
ftp -v -i -n <<SCRIPT
open servername
user
username password
cd /server/logs
for file in MCWAS*
do
put ${file} /home/test/${file}
done
bye
SCRIPT (2 Replies)
Discussion started by: caesarkim
2 Replies
2. Shell Programming and Scripting
Hi,
I have to ftp to a remote machine.
i have got the Ip, username and password and the file path..
I need to get the file name with out user intervention in my script..
is there any way to do this..
please help
esham (2 Replies)
Discussion started by: esham
2 Replies
3. UNIX for Dummies Questions & Answers
Hi ,,
I am wrting a shell script to ftp a file from remote server but its giving some problem to me.can you help me in debugging this.
#!/usr/bin/ksh
HOST="some ip"
user="user_name"
passwd="password"
ftp -n $HOST >>END_SCRIPT
USER $user
$passwd
binary
prompt
get... (3 Replies)
Discussion started by: namishtiwari
3 Replies
4. Shell Programming and Scripting
Hi,
I need to upload a file via ftp. I have given :
ftp -n $HOST <<END
quote user $USER
quote pass $PASSWD
prompt off
put bus.txt
quit
END
Its throwing a syntax error at "<<" symbol. What should be done for this ?? (2 Replies)
Discussion started by: risshanth
2 Replies
5. UNIX for Advanced & Expert Users
HI ALL
i am writing a shell script in which i have to use FTP command like.
FTP <ip address>
cd xyz
mget*
bye
but i am not able to perform any command from shell script.
once the control goes to FTP, i again have to type all the things.
i just want my shell script to take care of the... (8 Replies)
Discussion started by: infyanurag
8 Replies
6. Shell Programming and Scripting
Hi All,
I want to make a ftp call using a separate file where the ftp commands will reside.
Please find below the details:
I have 2 files Sample1.sh and Properties
Properties
---------
<username>
<password>
.... other ftp commands
Sample1.sh
----------
ftp -v <servername> <... (1 Reply)
Discussion started by: pickpeters
1 Replies
7. Shell Programming and Scripting
Hi,
What i would like to do is to use a shell script connect to a remote computer and download files from a specific directory. I wrote the following script.
#!/bin/sh
HOST='IP'
USER='yourid'
PASSWD='yourpw'
FILE='*.txt'
REMOTEPATH=/incoming/MSC/
ftp $HOST <<END_SCRIPT
user $USER... (3 Replies)
Discussion started by: chriss_58
3 Replies
8. UNIX for Dummies Questions & Answers
Hi
I am new in UNIX field. I don't know if I am posting in right forum or not. And I have also found out that there are so many posts about ftp shell scripting. I have tried those but actually having some problem.
Well, my script should do the following..... It finds files( the filename ended... (3 Replies)
Discussion started by: abhishek_510
3 Replies
9. Shell Programming and Scripting
#!/usr/bin/ksh
export filename=/grid/PowerCenter/inbound/AT/filelist.txt
export SOURCE_DIR=/grid/PowerCenter/inbound/AT
export ICOMS_FTP_TGT_DIR1=/dw/input/ATU/ICOM_SERV1
export ICOMS_FTP_TGT_DIR2=/dw/input/AT/ICOM_SERV2
export FILE_MASK="ATRPU_RP_ATU"
echo "start"
ftp_data_file()
{
... (15 Replies)
Discussion started by: vsmeruga
15 Replies
10. Shell Programming and Scripting
Hello Brothers,
I am new in shell script.I need a shell script that will run in Linux Server. Script will connect to windows FTP server before connection script will check the connection from linux server to windows server, if connection is ok then show a message and get specific file and... (34 Replies)
Discussion started by: maruf
34 Replies
LEARN ABOUT DEBIAN
ggi-error
gg-error(3) GGI gg-error(3)
NAME
gg-error, gii-error, ggi-error - GGI error definitions
SYNOPSIS
#include <ggi/errors.h>
DESCRIPTION
GGI return code policy is usually (unless otherwise noted):
== 0 on normal completion
> 0 when giving additional hints or returning positiv integer data
< 0 for errors
GGI error codes are of the form GGI_* and are guaranteed to be negative (except GGI_OK of course, which is guaranteed to be zero).
The following error codes are defined:
GGI_OK 0 /* All is well */
GGI_ENOMEM -20 /* Out of memory */
GGI_ENOFILE -21 /* File does not exist */
GGI_ENODEVICE -22 /* Input/Output device can not be opened */
GGI_EARGREQ -23 /* Required argument missing */
GGI_EARGINVAL -24 /* Invalid argument(s) */
GGI_ENOTALLOC -25 /* Trying to use or deallocate a resource that
was not previously allocated */
GGI_EFATAL -26 /* Fatal error - the state of the target of
the operation is undefined */
GGI_EBADFILE -27 /* Error reading (config) file */
GGI_ENOSPACE -28 /* Out of space / range */
GGI_ENOFUNC -29 /* Function not implemented */
GGI_EBUSY -30 /* Object is busy */
GGI_ENOTFOUND -31 /* The requested object was not found */
GGI_EEXCLUSIVE -32 /* Tried to get non-exclusive access to object
which only supports exclusive access */
GGI_ENOMATCH -33 /* No matching entry found */
GGI_EEVUNKNOWN -40 /* Unknown event sent to or received from
input source */
GGI_EEVNOTARGET -41 /* No apropriate target for for sent event */
GGI_EEVOVERFLOW -42 /* Overflow when queuing event */
GGI_EUNKNOWN -99 /* Unknown error */
The values -1 to -19 are reserved for extensions. See their error manpage for the details.
libgg-1.0.x 2005-07-29 gg-error(3)