You are here

V2 With WG2MP

4 posts / 0 new
Last post
freddy12
Offline
Has donated long time ago
Joined: 8 years
Last seen: 4 years
V2 With WG2MP

with the new run.sh in  V2 . im trying to get WG2MP to run when the scrapping has finished  ive tried added it in but cant get it to work . so im doing something wrong lol .  any help 

 

#!/bin/bash

#/**
# * @file run.sh
# * @brief just start WebGrab+Plus
# * @author Francis De Paemeleere
# * @date 31/07/2016
# */

#backup the current working dir
WG_BCKP_DIR="$(pwd)"

function quit {
    #restore previous working dir
    cd "$WG_BCKP_DIR"
    exit $1;
}

# check if mono can be found
which mono >/dev/null 2>&1 || { echo >&2 "Mono required, but it's not installed."; quit 1; }

# get the absolute path of the link (or relative path)
if [ -L $0 ] ; then
    DIR=$(dirname $(readlink -f $0)) ;
else
    DUTDIR=$(dirname $0) ;
    if [ "${DUTDIR:0:1}" = "/" ]; then
        DIR="$DUTDIR";
    else
        DIR=$PWD/$(dirname $0) ;
    fi
fi ;

mono "$DIR/bin/WebGrab+Plus.exe" "$DIR"

mono "$DIR/WG2MP.exe” /Users/jack/wg++/guide.xml /Users/jack/wg++/guide2.xml "$DIR"

quit 0;

francis
Offline
francis's picture
Has donated long time agoWG++ Team member
Joined: 12 years
Last seen: 1 week
Is the support helpful?
support us

WG2MP is not automatically installed. Just download it from http://webgrabplus.com/download and put it in your $DIR/bin/, next to WebGrab+Plus.exe. Adjust the script like Blackbear199 stated and you should be fine.

freddy12
Offline
Has donated long time ago
Joined: 8 years
Last seen: 4 years

thanks lads as always (y)

freddy12
Offline
Has donated long time ago
Joined: 8 years
Last seen: 4 years

thanks lads as always (y)

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