07-18-2011
This is just to give you a clear understanding of how ftp will do in failed cases ....
ftp copy will not give you an error status of "1" even when it is failed , because the last command that is executed will be 'bye' , so "$?" will always return a "0"( i.e status 'success') .
By which means irrespective of the file transfer you will get the return status as success always which may mislead you .
This User Gave Thanks to Amaravathi For This Post:
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi,
I need to send an email from an UNIX shell script along with an attachment.
I am working on an HP-UX 11.00 system. The only mailing program which provides adding an attachment to a mail is "pine". However pine is not installed on my system and I cannot install it too due to the server being a... (2 Replies)
Discussion started by: navin
2 Replies
2. Shell Programming and Scripting
Hi,
I need to compress (zip) a flat file and mail the same as an attachment.
I had tried the following piece of code. But when i open the attachment in mail, the data is incorrect (displays all junk characters).
tar cf abc.tar abc.txt
compress abc.tar
uuencode abc.tar.Z abc1.wri | mailx -s... (0 Replies)
Discussion started by: gayath3
0 Replies
3. Shell Programming and Scripting
Hi,
This is what my script looks like:
cd /var/apache/htdocs/MyApp
var=`more /var/apache/htdocs/MyApp/activate`
mailx -s "from MyApp" selma@mail.com <<EOT
intro:
--------------
$var
EOT
I get output that I would like to see when I invoke the script manually, this is is the... (2 Replies)
Discussion started by: Selma
2 Replies
4. Shell Programming and Scripting
I have a Unix server with SunOS 5.8 installed on it. I have set a cron job which will send mail across the two different networks. As of now i can only send mails to the abc.com who owns the server but would also like to send it to xyz.com is there any setting or parameter wherein i need to add... (2 Replies)
Discussion started by: nimish
2 Replies
5. Shell Programming and Scripting
Hi all..
I'm not a scripter but I'm trying to set up a mail script that emails out once a file has been written to.
Is there some way of writing a while read loop or something, so that it reads each line of the file and then ends when a specific number of lines have been written...
We're... (2 Replies)
Discussion started by: Jazmania
2 Replies
6. Shell Programming and Scripting
Hi,
I have a file lets say FILE1.
FILE1
------
name,age
charlie,25
harry,29
david,32
Pls help me writing a mailing script.... which will mail the content of file in the body of the mail & it will look something like below in two columns.
name age
charlie 25
harry 29... (1 Reply)
Discussion started by: 46019
1 Replies
7. Shell Programming and Scripting
Hi,
I am new to perl:
I need to write perl script to list all the files present in directory and mail should be come to my inbox with all the files present in that directory.
advanced thanks for valuable inputs.
Thanks
Prakash GR (1 Reply)
Discussion started by: prakash.gr
1 Replies
8. Shell Programming and Scripting
Hi all,
This is my first post.
I am new to unix scripting.
My requirement is as follows :
We are using a financial backoffice application.
Now at the end of day we have send users a status report stating all timings of EOD processes for all countries.
I need timings for following... (0 Replies)
Discussion started by: ammbhhar
0 Replies
9. Shell Programming and Scripting
Hi all,
I have a directory in which files are formed daily at certain time.files have certain naming convention for ex ..
File1TTT.DATddmmyyyyhrsminsec
File2TTT.DATddmmyyyyhrsminsec
I want to take their line count when they are formed and mail that line count.
Please help how to... (2 Replies)
Discussion started by: ammbhhar
2 Replies
10. Shell Programming and Scripting
My mailing script
#!/usr/bin/ksh
SUBJECT="SETEMAILSUBJECT"
MAIL="abc@xyz.com"
MESSAGE="mail.txt"
mail -s $SUBJECT $MAIL < $MESSAGE
The script works fine in one server but not in another. Iam not getting any errors also in the second server.
Also if i simply try
echo testBody | mail... (1 Reply)
Discussion started by: blackhorse
1 Replies
LEARN ABOUT DEBIAN
globus_i_gass_copy_state_target_s
globus_i_gass_copy_state_target_s(3) globus gass copy globus_i_gass_copy_state_target_s(3)
NAME
globus_i_gass_copy_state_target_s -
SYNOPSIS
Data Fields
char * url
globus_gass_copy_attr_t * attr
globus_mutex_t mutex
globus_fifo_t queue
int n_pending
int n_simultaneous
int n_complete
globus_i_gass_copy_target_status_t status
globus_gass_copy_url_mode_t mode
union {
struct {
} ftp
struct {
globus_gass_transfer_request_t request
} gass
struct {
globus_bool_t free_handle
globus_bool_t seekable
} io
} data
Detailed Description
GASS copy target (e.g.
source, destination) transfer information.
Field Documentation
char* globus_i_gass_copy_state_target_s::url
url for file transfer
globus_gass_copy_attr_t* globus_i_gass_copy_state_target_s::attr
attributes to control file transfer
globus_mutex_t globus_i_gass_copy_state_target_s::mutex
coordinates the modifying of the target structure
globus_fifo_t globus_i_gass_copy_state_target_s::queue
a queue to manage the reading/writing of data buffers
int globus_i_gass_copy_state_target_s::n_pending
Used for keeping track of reads/writes in the read/write queue.
int globus_i_gass_copy_state_target_s::n_simultaneous
Used to limit the number of n_pending.
int globus_i_gass_copy_state_target_s::n_complete
Used to compute the offset for ftp writes.
globus_i_gass_copy_target_status_t globus_i_gass_copy_state_target_s::status
signifies the target has been successfully setup
globus_gass_copy_url_mode_t globus_i_gass_copy_state_target_s::mode
mode used to identify the below target union struct.
struct { ... } globus_i_gass_copy_state_target_s::ftp
ftp specific data
globus_gass_transfer_request_t globus_i_gass_copy_state_target_s::request
GASS equivelent of a handle.
struct { ... } globus_i_gass_copy_state_target_s::gass
GASS specific data.
globus_bool_t globus_i_gass_copy_state_target_s::free_handle
If the IO handle was passed as an argument then FALSE If the IO handle was created internally then TRUE.
globus_bool_t globus_i_gass_copy_state_target_s::seekable
Can globus_io_file_seek() be performed on this handle?
struct { ... } globus_i_gass_copy_state_target_s::io
IO specific data.
union { ... } globus_i_gass_copy_state_target_s::data
data required to perform each type of transfer
Author
Generated automatically by Doxygen for globus gass copy from the source code.
Version 8.4 Mon Apr 30 2012 globus_i_gass_copy_state_target_s(3)