it's quite big... let's just say that some point it goes like this:
--------------------------
<I have already established an sftp connection>
expect "sftp>" {
....send "put $filename\r"
....
....set f $filename
....set uploadedFileSize [ file size $f ]
....
....if {$filesize != $uploadedFileSize} {
........<bad things happen>
....}
}
--------------------------
the problem is that so far I catch only the local file name, not the remote one...
...that's why I want to send somehow a "ls -l <filename>" command and parse its output. Too bad I have no idea how to do that.
Main Topics
Browse All Topics





by: HamdyHassanPosted on 2006-10-04 at 08:14:55ID: 17660001
can you post the existing script so far?