Search Results

Search: Posts Made By: dba.admin2008
3,073
Posted By dba.admin2008
try a ping <hostname> ..ping once ..awk the...
try a ping <hostname> ..ping once ..awk the result and
save it into varibale and check that in IF condition.
18,471
Posted By dba.admin2008
this seems to work... if [ $audit_ftpsize =...
this seems to work...

if [ $audit_ftpsize = $audit_lsize ] && [ $details_ftpsize = $details_lsize ] && [ $summary_ftpsize = $summary_lsize ]; then
18,471
Posted By dba.admin2008
thanks for the reply Ikon... i run a script...
thanks for the reply Ikon...

i run a script if these variables are equal. so basially i am trying to see if these are equal. it is like '='.
18,471
Posted By dba.admin2008
syntax error: `-a' unexpected operator/operand in IF
When i tyr this, it gives me a syntax error...i tried removing quotes,removing spaces,replacing -eq with '='.. Can somebody suggest that is the problem?

if [[ "$audit_ftpsize" -eq "$audit_lsize"...
11,994
Posted By dba.admin2008
something new. i will try that... thanks...
something new. i will try that...
thanks Lakris...
11,994
Posted By dba.admin2008
thanks for the reply Lakris... i did a ...
thanks for the reply Lakris...

i did a
result=`ssh user@<hostname> ls -l <filename> | awk '{print $5}'`

this gave me the size in bytes . This fits my requirement.
11,994
Posted By dba.admin2008
file size comparision local file and remote file
Hi,

I have written a script which would FTP a dump file to the FTP server and log the whole activity into a file. to confirm the success of the file copy i grep for "226 file receive OK" and...
Showing results 1 to 7 of 7

 
All times are GMT -4. The time now is 01:52 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy