Jump to content

Two Apps in Shell Script


Guest cryptohead7
 Share

Recommended Posts

Guest cryptohead7

Hi,

 

I want to create a script that will run Mozilla and then connect to KPPP -c xxx. I tried a shell script like:

 

mozilla;kppp -c xxx

 

but, it waits for mozilla to close before starting KPPP. How can I make them run?

 

Jean S. Paquet

Link to comment
Share on other sites

what if the connection fails?

 

I suggest:

 

if kppp -c xxx; then

   exec mozilla 

else

   echo 'couldn't connect!'

fi

 

or simplier:

 kppp -c xxx && exec mozilla || echo 'couldn't connect!'

 

If the script is not supposed to end after starting mozilla replace the "exec mozilla" with "mozilla &"

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...