× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Do you know how to do it outside of sftp? Just call the sftp script for
each file that needs to be sent. I not a pgmr so all those neat tricks you
folks do above me.

On Mon, Jan 30, 2012 at 6:02 PM, John McKee <jmmckee@xxxxxxxxxxxxxx> wrote:

Some days, I need to send two files, other days, only one. The remote
site sends a warning email if the second file I send is empty. I
would like to avoid that.

I have looked at several web pages, but I am unclear as to how to
create the needed code.

I don't know how to test this as the remote site just grabs files that
are uploaded.

I also don't know if the script can (or how to do it) determine if a
file is essentially empty. First thought was to set an environment
variable based on result of RTV (can't remember which command to use,
but I have used it - just not in front of my terminal)

The current script does this, from memory:

expect "sftp>" put {$LOCALFILE} {$RMTFILE}
expect "sftp>" put {$LCLFILE2} {$RMTFILE2}
expect "sftp>" send "exit\n"

I haven't found an example to conditionally send a file, but I can see
that it can be done. Just don't know the syntax.

Thanks.

John McKee
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.





As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.