Hi everybody,
i have a problem in my raspbian ( raspberry ), when i execute it with gnome schedule 2.1.1, because i want to automate it.
I put wg++ in /home/, so i have /home/wg++/
if i launch it i have:
pi@raspberrypi:~ $ sudo mono /home/pi/wg++/WebGrab+Plus.exe "$(pwd)"
WebGrab+Plus/w MDB & REX Postprocess -- version 1.1.1/55.27
Jan van Straaten
Francis De Paemeleerethanks to Paul Weterings and all the contributing users
--------------------------------------------------------------------------------my.movies.it.ini doesn't exist !!
empty.ini assumed, will yield no results!System.IO.FileNotFoundException: Could not find file "/home/pi/empty.ini".
File name: '/home/pi/empty.ini'
at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess a ccess, FileShare share, Int32 bufferSize, Boolean anonymous, FileOptions options ) [0x00000] in <filename unknown>:0
at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess a ccess, FileShare share) [0x00000] in <filename unknown>:0
at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,Sys tem.IO.FileMode,System.IO.FileAccess,System.IO.FileShare)
at System.IO.File.OpenRead (System.String path) [0x00000] in <filename unknown >:0
at System.IO.StreamReader..ctor (System.String path, System.Text.Encoding enco ding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize) [0x00000] in < filename unknown>:0
at System.IO.StreamReader..ctor (System.String path) [0x00000] in <filename un known>:0
at (wrapper remoting-invoke-with-check) System.IO.StreamReader:.ctor (string)
at System.IO.File.ReadAllText (System.String path) [0x00000] in <filename unkn own>:0
at WGconsole.SiteIni..ctor (System.String ini_file) [0x00000] in <filename unk nown>:0
at WGconsole.Config..ctor (System.String Path) [0x00000] in <filename unknown> :0
if i launch sudo mono ~/wg++/WebGrab+Plus.exe "$(pwd)"
same issue
how can i fix it?
because i need to automate it, so i can't make:
cd /home
cd /pi
cd wg++
sudo mono WebGrab+Plus.exe "$(pwd)"
if i do it works, but i do it manually and it's crazy ;)
thanks for that, works if i launched sh from terminal, but crontab ( gnome-schedule 2.1.1) seems that doesn't works.
Doesn't execute any command, i don't understand why, i tried to execute it with root user without success.
I have last raspbian.
crontab -e return me:
0 2 * * 5 /home/pi/./webgrab.sh # JOB_ID_3
i tried to execute it in gui but seems that doesn't execute
0 1 * * 4 /home/pi/wg++/webgrab.sh # JOB_ID_6
i do that, but i need to wait this night at 01:00 to verify if it works.
In GUI, the botton execute the task now, doesn't works.
(is normal anyway that for 192 channels, and 5 days, need 8 hours ? )
0 1 * * 4 /home/pi/wg++/webgrab.sh # JOB_ID_6
* * * * * /home/pi/wg++/webgrab.sh # JOB_ID_7
so every mins should be start, but nothing, doesn't appear "mono" in top
but if i launch manually in shell ( terminal ) with:
/home/pi/wg++/webgrab.sh
i can see "mono" in top and execute it..... ;(
EDIT:
i found in /var/mail that:
last line says that in sh script, in line 5, mono is a nt found command
and now i tried one more time to add in line 5 "sudo" and not only mono, seems that works like that.
infact in /usr/bin there isn't any mono or symbolic mono link, nothing...
but from shell i can launch mono command: