Computing.Net > Forums > Unix > sftp connect syntax..in shell scrip

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

sftp connect syntax..in shell scrip

Reply to Message Icon

Name: livetaurean19
Date: June 15, 2005 at 11:03:35 Pacific
OS: unix
CPU/Ram: unsure
Comment:

Hi all,
I'm very new to UNIX so request you to be AS CLEAR as you can.
I've to use the following command using a PRINT and piping it, so as to avoid exposing the passwords.

sftp -B /dev/fd/0 $USERSTRING@$FTPSVRSTRING << EOF 1>>$LOG_FILE 2>>$LOG_FILE1

I know the syntax as print " commands
....
" | sftp ..........>> ...
but I'm not able to relate it here, cuz there being no other commands if I put sftp within the braces then sftp command does not get executed.
Any help would be appreciated..



Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: sftp connect syntax..in shell scrip

loops in shell scripts!!! www.computing.net/answers/unix/loops-in-shell-scripts/5140.html

Using hex-code in shell script www.computing.net/answers/unix/using-hexcode-in-shell-script/4227.html

Array size in shell script? www.computing.net/answers/unix/array-size-in-shell-script/5761.html