![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| compare two col from 2 files, and output uniq from file 1 | pp56825 | Shell Programming and Scripting | 2 | 01-10-2008 11:10 AM |
| Aggregate values in a file & compare with sql output | shiroh_1982 | UNIX for Dummies Questions & Answers | 1 | 09-02-2007 07:40 AM |
| How to compare file size after ftp? | icemania | Shell Programming and Scripting | 1 | 07-09-2007 11:17 PM |
| compare 2 files, output dups to file | blt123 | UNIX for Dummies Questions & Answers | 2 | 07-15-2004 10:31 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Hi guys,
firstly I'm working on SunOS 5.10 Generic_125100-10 sun4u sparc SUNW,Sun-Fire-V240 I've made a script to compress two directory and then send them to an other server via ftp. This is working very well. Inside theis script I decide to log usefull data for troubleshooting in case of need. quit easy until now. I need to send some information by mail to a anaware person. this information would be the data has been compressed well and are base on the ftp server or the backup transfert hasn't worked well. Here is starting the interesting clue ![]() ![]() ![]() Then I send to a file (INFO) the output of ls -l of the Compressed file and theDIR ftp output which are like this : -rwxrwxrwx 1 ftpfintel ftpuser 2103425 Nov 5 11:40 ftptestsys.tar.Z -rw-r--r-- 1 root root 2103425 Nov 5 11:56 ftptestsys.tar.Z Then I create a function to sort out and get only file name and size and owner that I send to a file (MAIL). which is like this : root 2103425 ftptestsys.tar.Z ftpfintel 2103425 ftptestsys.tar.Z Now from this or from an other way, I would like to create a check between the size of the two files. Have you and idea, I'm trying to user eq but nothing good and do you know how can read the content of MAIL and get something like MAIL < if [ [0-9] eq [0-9] then echo "transfert ok" else echo "transfert defect" |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|