Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-18-2008 03:33 AM
тАО08-18-2008 03:33 AM
echo
echo "\$send_file_list" | ftp -i xyz
What the above script line is doing, and where I can get the send_file_list?
Thanks.
- Tags:
- echo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-18-2008 03:43 AM
тАО08-18-2008 03:43 AM
Re: echo
The echo statement is writing to STDOUT the exact string shown and then passing (piping) that to the 'ftp' process which is going to open an interactive ftp session with host "xyz".
The backslash in front of the '$' escapes tells your shell *not* to interpolate the string as a variable but leave it alone.
Regards!
...JRF...
- Tags:
- quoting
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-18-2008 03:49 AM
тАО08-18-2008 03:49 AM
Re: echo
But where I can see the value of send_file_list?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-18-2008 03:52 AM
тАО08-18-2008 03:52 AM
Re: echo
# echo "\$send_file_list"
$send_file_list
is this a line in a script?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-18-2008 03:55 AM
тАО08-18-2008 03:55 AM
Re: echo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-18-2008 03:55 AM
тАО08-18-2008 03:55 AM
Re: echo
> But where I can see the value of send_file_list?
There is no value. The backslash ('\') tells the shell *not* to evaluate the '$send_file_list'. Compare these:
# send_file_list=somefiles
# echo "$send_file_list"
somefiles
# echo "\$esnd_file_list"
$send_file_list
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-18-2008 03:57 AM
тАО08-18-2008 03:57 AM
Re: echo
> Yes, this suppose to transfer file from one server to another!
Then you undoubedly want to drop the '\' from "\$send_file_list".
Regards!
...JRF...