WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Running modem connect script from jwm.  (Read 1945 times)

Offline pema

  • Newbie
  • *
  • Posts: 48
Running modem connect script from jwm.
« on: March 07, 2009, 08:32:41 AM »
This is propably an easy one for you guys but Im not succesfull with runing a modem connect script from jwm.
My script looks like this:

#!/bin/sh
sudo pppd -detach connect "chat -s -v -f /etc/ppp/pppscript"

It is named connect.sh and is located in my tc user home folder, it has all permissions I can see and set from emelfm. I setup a new menu entry in .jwmrc and is running file connect.sh as sudo /searchpath/connect.sh but nothing happens.
Script works when entered in term.
Where did I go wrong ?

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 10963
Re: Running modem connect script from jwm.
« Reply #1 on: March 07, 2009, 11:03:20 AM »
The nodetach (-detach) option is where I guess Jwm doesn't like it; also, why double sudo?
The only barriers that can stop you are the ones you create yourself.