Hi ,
Can Webgrab be scheduled to run on raspberry pi via crontab ?
i tried to script first:
-------------------------------------------------------------------------------------------------------------
#!/bin/bash
# WebGrab
cd /home/pi/wg++
/usr/bin/mono WebGrab+Plus.exe "$(pwd)"
-------------------------------------------------------------------------------------------------------------
result is that it don't get the config file
-------------------------------------------------------------------------------------------------------------
/ doesn't exist!
correct the commandline parameter to match an existing path!
Excecution will stop!
pi@raspberrypi ~ $
-------------------------------------------------------------------------------------------------------------
How can i correct this ?
Thanks in advance.
kind regards,
WaiH
can you run it manually?
And what is the exact logfile?
i can run it manually with
cd wg++/
mano WebGrab+Plus.exe "$(pwd)"
the only log is the log when it started manually (included)
but somehow it doesn't work when i use it in a .sh script.
And can you run the .sh manualy?
You could try to change the .sh to:
sorry, manually i mean type it in shell
tried manually the .sh script and get those errors.tried
also get the same error
/ doesn't exist!
correct the commandline parameter to match an existing path!
Excecution will stop!
And without the quotes?
tried it, still the same error, tried different variations
cd /home/pi/wg++
/usr/bin/mono WebGrab+Plus.exe /home/pi/wg++/
with
cd /home/pi/wg++
/usr/bin/mono WebGrab+Plus.exe "$(/home/pi/wg++/WebGrab++.config.xml)"
i get this
pi@raspberrypi ~ $ bash test.sh
/home/pi/wg++/WebGrab++.config.xml: line 1: !--?xml: No such file or directory
/home/pi/wg++/WebGrab++.config.xml: line 2: settings: No such file or directory
/home/pi/wg++/WebGrab++.config.xml: line 3: $'\r': command not found
/home/pi/wg++/WebGrab++.config.xml: line 4: !--: No such file or directory
/home/pi/wg++/WebGrab++.config.xml: line 5: $'\r': command not found
/home/pi/wg++/WebGrab++.config.xml: line 6: filename: No such file or directory
/home/pi/wg++/WebGrab++.config.xml: line 7: syntax error near unexpected token `<'
'home/pi/wg++/WebGrab++.config.xml: line 7: ` <mode></mode>
WebGrab+Plus/w MDB & REX Postprocess -- version 1.1.1/55.27
Jan van Straaten
Francis De Paemeleere
thanks to Paul Weterings and all the contributing users
--------------------------------------------------------------------------------
/ doesn't exist!
correct the commandline parameter to match an existing path!
Excecution will stop!
pi@raspberrypi ~ $
somehow it can't find the config file
----------------------------------------------------------------------------------------------------------------------------------------------------------------
with:
cd /home/pi/wg++
/usr/bin/mono WebGrab+Plus.exe "/home/pi/wg++/WebGrab++.config.xml"
it gives:
/ doesn't exist!bGrab++.config.xml
correct the commandline parameter to match an existing path!
Excecution will stop!
----------------------------------------------------------------------------------------------------------------------------------------------------------------
without quotes:
cd /home/pi/wg++
/usr/bin/mono WebGrab+Plus.exe /home/pi/wg++/WebGrab++.config.xml
/ doesn't exist!bGrab++.config.xml
correct the commandline parameter to match an existing path!
Excecution will stop!
No WebGrab++.config.xml after the path.
The parameter to wg++ must be a folder, not a file!
So
cd /home/pi/wg++
/usr/bin/mono WebGrab+Plus.exe /home/pi/wg++
should work.
And in your first post, it worked, so that should be the way to do it.
Also, did you copy the text from windows to linux, or just retyped it in linux?
I know that this is sometimes mixing up things.
i typed it all in linux.
still not working with /home/pi/wg++ OR ./ or any other reference to a dir, it won't run and gives
/ doesn't exist!
correct the commandline parameter to match an existing path!
Excecution will stop!
attached test.sh file
Is it possible for the linux version to set default to current dir ?
have you find a solution?
i have the same trouble, i want to execute wg++ in gnome schedule so i don't do it manually, but doesn't works.
seems that doesn't recognize files in wg++, so tell me that missing files in /home/pi, but wg++ is on /home/pi/wg++
sorry no solution yet.
went back to windows for grab.
should work, check if your system has bash update, use scheduler
terminal: