[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-wget] Wget append system date

From: Wilson, Gary
Subject: Re: [Bug-wget] Wget append system date
Date: Mon, 14 Jan 2013 19:47:25 +0200

Hi Angel/Wget

Please note that this command will need to execute within MS DOS, will this 
still work?

wget http://192.168.02/DataLog.html?FileName=Day_Shift_.csv -O Day_Shift-`date 

Kind Regards
Gary Wilson
Prof Eng Techni (ECSA)
BTECH: Elec Engineering (UNISA)
Profibus Certified Engineer (PCC)
TIA Product Promoter
Siemens Industry Automation
300 Janadel Avenue
South Africa, 1685
Tel: +27116523698
Cell: +27845844515
Email: address@hidden
Totally Integrated Automation (TIA) website:
Service & Support website:

(Isaiah 40:31 - Those who hope on the Lord will renew their strength and will 
soar on wings like Eagles)

-----Original Message-----
From: Ángel González [mailto:address@hidden 
Sent: 14 January 2013 05:08 PM
To: Wilson, Gary
Cc: Bart Puype; address@hidden; address@hidden; Hartwig, Peter; A&D SIMATIC ASS 
(SSS); address@hidden
Subject: Re: [Bug-wget] Wget append system date

On 13/01/13 22:24, Wilson, Gary wrote:
> Hi Bart/Wget
> I need to upload a file and also append the system date to the 
> uploaded file, how do you do this?
> Example:
> Uploaded file = wget.exe
> http://192.168.02/DataLog.html?FileName=Day_Shift_.csv
> The file needs to have the date appended to it as follows 
> "DataLog.html?FileName=Day_Shift_14/1/2013.csv"

Does your OS allow slashes inside a filename? Otherwise, it can't be done.

On a POSIX shell you could provide the current date in the output filename like 
wget http://192.168.02/DataLog.html?FileName=Day_Shift_.csv -O Day_Shift-`date 

(replace the / with something else if not supported by your filesystem)

Disclaimer and Confidentiality Note
This e-mail communication, its attachments, if any, and any rights attaching to 
it are, unless the context clearly indicates otherwise, the property of Siemens 
(Pty) Ltd. It is confidential, private and intended for the addressee only. If 
you are not the intended recipient and receive this communication in error, you 
are hereby notified that any review, copying, use, discloser or distribution in 
any manner whatsoever is strictly prohibited. Please notify the sender 
immediately that you have received this e-mail in error and delete the e-mail 
and any copies of it. Views and opinions expressed in this e-mail are those of 
the sender unless clearly stated as those of Siemens (Pty) Ltd. Siemens (Pty) 
Ltd accepts no liability for any loss or damage whatsoever, and howsoever 
incurred or suffered resulting or arising from the use of this e-mail 
communication and/or its attachments.
Siemens (Pty) Ltd does not warrant the integrity of this e-mail communication 
nor that it is free of errors, viruses, interception or interference.
Siemens (Pty) Ltd, its divisions and subsidiary companies (“Siemens”) expressly 
excludes sections 11, 12, and 13 of the Electronic Communications and 
Transactions Act, 25 of 2002 (“the ECT”) in respect of e-contracting.  No data 
message or electronic communication will be recognised as having a legal 
contractual status under the ECT Act.  All agreements concluded by Siemens will 
only be legally binding when reduced to physical writing and physically signed 
by a duly authorised representative of Siemens. 
For more information about Siemens (Pty) Ltd, visit our website at 

Siemens (Proprietary) Limited
Company Registration Number: 1923/007514/07
Registered Address: 300 Janadel Avenue, Halfway House 1685
VAT Registration Number: 4790104428
Chairman: Dr S Russwurm*
Chief Executive Officer: SG Proebstl*; Chief Financial Officer: SU Dall'Omo*
Executive Directors: AM Mathole; R Nkuhlu
Non-Executive Directors: R Guntermann*; Dr MI Surve
Alternate Directors: I Amod; JK Winter*


reply via email to

[Prev in Thread] Current Thread [Next in Thread]