You are here

Running webgrab+plus from a bash script for automated update on raspberrypi

4 posts / 0 new
Last post
Shanix
Offline
Joined: 8 years
Last seen: 7 years
Running webgrab+plus from a bash script for automated update on raspberrypi

Hi,

I have everything installed on my raspbery pi2, and I can run the .exe whitout problems using:
mono /WG++/WebGrab+Plus.exe "/WG++"

But if I put this command into a .sh script file and run it;
I get the WebGrab header in the command line, but then this:
 

/ doesn't exist!

correct the commandline parameter to match an existing path!

Excecution will stop!

 

Any suggestions on how to run this from a script so that it can be automated?

Shanix
Offline
Joined: 8 years
Last seen: 7 years

/WG++ is in the root folder

1NSdbZVbpZDX
Offline
Joined: 9 years
Last seen: 6 years

here my bash to run 4 WG++ at same time cheeky:

#!/bin/bash

## xterm font settings
xf='DejaVu Sans Mono'
xs=8

# tvgrabar.xml
cd $HOME/.wine/drive_c/ProgramData/ServerCare/WebGrab && xterm -fa "$xf" -fs "$xs" -geometry 80x24+735+385 -e mono WebGrab+Plus.exe "$(pwd)" &

# directv.xml
cd $HOME/Applications/wg++/WG+3 && xterm -fa "$xf" -fs "$xs" -geometry 80x24+240+385 -e mono WebGrab+Plus.exe "$(pwd)" &

# guideWin.xml
cd $HOME/Applications/wg++/WG+2 && xterm -fa "$xf" -fs "$xs" -geometry 80x24+735+30 -e mono WebGrab+Plus.exe "$(pwd)" &

# guide.xml
cd $HOME/Applications/wg++ && xterm -fa "$xf" -fs "$xs" -geometry 80x24+240+30 -e mono WebGrab+Plus.exe "$(pwd)"

notify-send -u normal -i audio-volume-medium-symbolic "Grab completed"
aplay -q /usr/share/sounds/Computer_Magic-Microsift.wav

Shanix
Offline
Joined: 8 years
Last seen: 7 years

well, its a very bad idea to use nano to edit .sh scripts... omg, problem is solved now :P

Log in or register to post comments

Brought to you by Jan van Straaten

Program Development - Jan van Straaten ------- Web design - Francis De Paemeleere
Supported by: servercare.nl