LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-28-2011, 05:22 PM   #1
gburton
LQ Newbie
 
Registered: Jun 2011
Posts: 3

Rep: Reputation: Disabled
Resolving variables in an FTP session


I set a variable before entering the FTP session (vDate). Then it does not seem to resolve when I try to use it in the session as part of an mput command. $vDate resolves as an empty value. Can you point me in the right direction?

vDate=`TZ=GMT+24 date +%m-%d-%Y`
ftp -d -n server
quote USER u10004
quote PASS *****
prompt
cd outbound
mput /path/NetworkClick_2870_$vDate.log
bye
 
Old 06-28-2011, 05:28 PM   #2
droyden
Member
 
Registered: Feb 2007
Location: UK
Posts: 150

Rep: Reputation: 19
Echo the commands to a file then call the file with the define variable in it
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Question about usage of the session variables in php Asha456 Programming 4 01-15-2010 05:02 PM
[SOLVED] apache/ff/ie and session variables puzzle Wim Sturkenboom Linux - Server 2 08-25-2009 03:17 AM
PHP: session variables not being passed properly Robhogg Programming 4 07-28-2007 07:38 PM
How to use session variables in perl ? taqs Programming 1 09-28-2004 06:12 PM
PHP session variables in a database rmanocha Programming 0 07-16-2004 04:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:42 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration