willay
Moderator Organiser: South East, National Events Premium Member
Registered: 10th Nov 02
Location: Roydon, Essex
User status: Offline
|
Okay, basically I've got a bunch of commands that I need to run every morning, one of these files is to run grep (win32 port) on a certain log file which changes its name every day because part of it is the date (in dd.mm.yy format).
On my FreeBSD box, I can do the following:
quote:
[exnetsol@SENS76CSSCOUT01:exnetsol, 083 AM, Mon Mar 12]> cat `date "+%d.%m.%y"`.log
LOL hello
[exnetsol@SENS76CSSCOUT01:exnetsol, 083 AM, Mon Mar 12]>
But this needs to be done on a Windaz boxen using a WIN32 port of date:
quote:
C:\PROGRA~1\UnxUtils\usr\local\wbin>date.exe +%d.%m.%y
12.03.07
C:\PROGRA~1\UnxUtils\usr\local\wbin>
Pokay that works, lets try this...
quote:
C:\PROGRA~1\UnxUtils\usr\local\wbin>cat `date.exe +%d.%m.%y`.log
cat: `date.exe: No such file or directory
cat: +%d.%m.%y`.log: No such file or directory
C:\PROGRA~1\UnxUtils\usr\local\wbin>
Suggestions on what I'm not doing right here?
|