Hints, tips and tricks for newbies
Moderators: Dorian (MJT support), JRL
-
dafe
- Junior Coder
- Posts: 23
- Joined: Sun Apr 06, 2008 4:21 am
Post
by dafe » Thu Apr 09, 2009 8:17 am
Ok, smack me if this one is too basic, but i'm running a script which is hosted online eg. msched.exe
http://url/script.scp
This launches fine, but I would also like the script to keep a log on the local pc as well, but when i run
Code: Select all
msched.exe http://url/script.scp /LOGFILE=c:\logfile.log
I get a 404 error as it is treating the logfile flag as part of the url.
Placing the logfile flag infront of
http://url/script.scp doesn't help either.
Am I overlooking something obvious?
Any help appreciated
--
-
Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
-
Contact:
Post
by Marcus Tettmar » Thu Apr 09, 2009 8:43 am
Actually you should only need quotes if there's a space in the URL. I just tried it and it works fine for me without quotes if the URL has no spaces in it.
-
dafe
- Junior Coder
- Posts: 23
- Joined: Sun Apr 06, 2008 4:21 am
Post
by dafe » Thu Apr 09, 2009 9:02 am
hmm... i tried it with and without the quotes via a cmd prompt in the ms directory, result i get is
Code: Select all
Unable to retrieve http://url/script.scp /LOGFILE=c:\logfile.log
View server response?
My URL is actually one word eg. url instead of url.com.au, it resolves perfectly fine however, and runs fine as long as i drop the logfile flag. url has no spaces.
I must be missing something obvious?
--
-
dafe
- Junior Coder
- Posts: 23
- Joined: Sun Apr 06, 2008 4:21 am
Post
by dafe » Thu Apr 09, 2009 9:07 am
am running 11.1.08a too btw.
--