Results 1 to 1 of 1
Hi all,
This session gives the reader a good idea of what I'm trying to accomplish.
[User.at.Machine ~]$ string=foo
[User.at.Machine ~]$ sftp <<good_credentials>>
Connected to <<remote_host>>
sftp> !echo $string
sftp> ...
- 01-29-2011 #1Just Joined!
- Join Date
- Jan 2011
- Location
- Cambridge, Ontario, Canada
- Posts
- 22
Local Variables in SFTP
Hi all,
This session gives the reader a good idea of what I'm trying to accomplish.
[User.at.Machine ~]$ string=foo
[User.at.Machine ~]$ sftp <<good_credentials>>
Connected to <<remote_host>>
sftp> !echo $string
sftp> !echo bar
bar
sftp> !string=baz
sftp> bye
[User.at.Machine ~]$ echo $string
foo
[User.at.Machine ~]$
I am trying to both reference and assign here. Can I access local variables in this way? Should a work-around be used? Replies are much appreciated.


Reply With Quote