The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
lsof ??? marc UNIX for Dummies Questions & Answers 6 06-22-2006 10:57 PM
command lsof pascalbout AIX 2 02-22-2006 03:56 PM
lsof output skotapal UNIX for Dummies Questions & Answers 2 01-14-2003 07:12 AM
lsof jacl Filesystems, Disks and Memory 1 06-11-2002 05:27 PM
lsof output Malcolmm UNIX for Advanced & Expert Users 2 02-01-2002 06:07 AM

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-31-2008
Registered User
 

Join Date: Jan 2008
Posts: 1
lsof in solaris

Hi ..

I have written a cronjob to invoke a script that would transfer files based on some criteria.
Consider folders A and B. Say I FTP a large file to A. Before the file gets fully transfered say the cronjob gets invoked. The script will move the file before its fully transfered. To detect such I used "lsof" in Redhat.
lsof |grep <filename> will give me the filename that is currently under transfer.But this is not working exactly the same way in Solaris..
Any ideas??
Thanks..
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 02-01-2008
sysgate's Avatar
Unix based
 

Join Date: Nov 2006
Location: /root
Posts: 1,128
How exactly doesn't work ? Why not comparing the md5 sums of both files, and "sleep" a little bit more ?
Reply With Quote
Google UNIX.COM
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 03:28 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0