Any cron/UNIX script experts?
#1
can anyone tell me why all the jobs after this line I've inserted as ----- don't work, but the ones above do??? Is it the ? I use to parse a variable to the php script? If that's the issue how can I run it with the ?, as it is needed!
#!/bin/sh
lynx -dump -source http://www.ipaqsoft.net/php/topten.php >~/usr/local/etc/httpd/vhosts/gregh.co.uk/ipaqsoft/dailytop.htm
lynx -dump -source http://www.ipaqsoft.net/php/topten.php >~/usr/local/etc/httpd/vhosts/gregh.co.uk/ipaqsoft/dailytop.htm
lynx -dump -source http://www.ipaqsoft.net/php/toptenweekly.php >~/usr/local/etc/httpd/vhosts/gregh.co.uk/ipaqsoft/weeklytop.htm
lynx -dump -source http://www.ipaqsoft.net/php/gencategorylist.php >~/usr/local/etc/httpd/vhosts/gregh.co.uk/ipaqsoft/catlist.html
lynx -dump -source http://www.smartphonesoft.com/php/toptendaily.php > ~/usr/home/applian3/usr/local/etc/httpd/vhosts/gregh.co.uk/smartphonesoft.com/dailytop.htm
lynx -dump -source http://www.smartphonesoft.com/php/toptenweekly.php > ~/usr/home/applian3/usr/local/etc/httpd/vhosts/gregh.co.uk/smartphonesoft.com/weeklytop.htm
lynx -dump -source http://www.smartphonesoft.com/php/toptenmonthly.php > ~/usr/home/applian3/usr/local/etc/httpd/vhosts/gregh.co.uk/smartphonesoft.com/monthlytop.htm
---------------above works, below doesn't
lynx -dump -source http://www.ipaqsoft.net/php/newgameresults.php?type=games > ~/usr/home/applian3/usr/local/etc/httpd/vhosts/gregh.co.uk/ipaqsoft/allgames.htm
lynx -dump -source http://www.pocketpcsoft.net/php/freeware.php > ~/usr/home/applian3/usr/local/etc/httpd/vhosts/gregh.co.uk/ipaqsoft/allfreeware.htm
lynx -dump -source http://www.pocketpcsoft.net/php/newresults.php?type=aviation > ~/usr/home/applian3/usr/local/etc/httpd/vhosts/gregh.co.uk/ipaqsoft/aviation.htm
lynx -dump -source http://www.pocketpcsoft.net/php/newresults.php?type=conf > ~/usr/home/applian3/usr/local/etc/httpd/vhosts/gregh.co.uk/ipaqsoft/conf.htm
lynx -dump -source http://www.pocketpcsoft.net/php/newresults.php?type=db > ~/usr/home/applian3/usr/local/etc/httpd/vhosts/gregh.co.uk/ipaqsoft/db.htm
lynx -dump -source http://www.pocketpcsoft.net/php/newresults.php?type=dev > ~/usr/home/applian3/usr/local/etc/httpd/vhosts/gregh.co.uk/ipaqsoft/dev.htm
regards,
greg
#!/bin/sh
lynx -dump -source http://www.ipaqsoft.net/php/topten.php >~/usr/local/etc/httpd/vhosts/gregh.co.uk/ipaqsoft/dailytop.htm
lynx -dump -source http://www.ipaqsoft.net/php/topten.php >~/usr/local/etc/httpd/vhosts/gregh.co.uk/ipaqsoft/dailytop.htm
lynx -dump -source http://www.ipaqsoft.net/php/toptenweekly.php >~/usr/local/etc/httpd/vhosts/gregh.co.uk/ipaqsoft/weeklytop.htm
lynx -dump -source http://www.ipaqsoft.net/php/gencategorylist.php >~/usr/local/etc/httpd/vhosts/gregh.co.uk/ipaqsoft/catlist.html
lynx -dump -source http://www.smartphonesoft.com/php/toptendaily.php > ~/usr/home/applian3/usr/local/etc/httpd/vhosts/gregh.co.uk/smartphonesoft.com/dailytop.htm
lynx -dump -source http://www.smartphonesoft.com/php/toptenweekly.php > ~/usr/home/applian3/usr/local/etc/httpd/vhosts/gregh.co.uk/smartphonesoft.com/weeklytop.htm
lynx -dump -source http://www.smartphonesoft.com/php/toptenmonthly.php > ~/usr/home/applian3/usr/local/etc/httpd/vhosts/gregh.co.uk/smartphonesoft.com/monthlytop.htm
---------------above works, below doesn't
lynx -dump -source http://www.ipaqsoft.net/php/newgameresults.php?type=games > ~/usr/home/applian3/usr/local/etc/httpd/vhosts/gregh.co.uk/ipaqsoft/allgames.htm
lynx -dump -source http://www.pocketpcsoft.net/php/freeware.php > ~/usr/home/applian3/usr/local/etc/httpd/vhosts/gregh.co.uk/ipaqsoft/allfreeware.htm
lynx -dump -source http://www.pocketpcsoft.net/php/newresults.php?type=aviation > ~/usr/home/applian3/usr/local/etc/httpd/vhosts/gregh.co.uk/ipaqsoft/aviation.htm
lynx -dump -source http://www.pocketpcsoft.net/php/newresults.php?type=conf > ~/usr/home/applian3/usr/local/etc/httpd/vhosts/gregh.co.uk/ipaqsoft/conf.htm
lynx -dump -source http://www.pocketpcsoft.net/php/newresults.php?type=db > ~/usr/home/applian3/usr/local/etc/httpd/vhosts/gregh.co.uk/ipaqsoft/db.htm
lynx -dump -source http://www.pocketpcsoft.net/php/newresults.php?type=dev > ~/usr/home/applian3/usr/local/etc/httpd/vhosts/gregh.co.uk/ipaqsoft/dev.htm
regards,
greg
#2
Scooby Regular
Join Date: Mar 2001
Location: Derbyshire
Posts: 4,496
Likes: 0
Received 0 Likes
on
0 Posts
Probably is because I think ? is used as a single character wildcard. You could try placing the http reference with the ? in in quotes and that might work (although I can't remember which ones would be best to try, "", '' or ``.
[Edited by Hanslow - 1/28/2004 10:11:48 AM]
[Edited by Hanslow - 1/28/2004 10:11:48 AM]
Thread
Thread Starter
Forum
Replies
Last Post
The Joshua Tree
Computer & Technology Related
18
11 September 2015 09:24 PM