D&C GLug - Home Page

[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] Install II

 


Martijn,
  I put that read statement at the end of the eldy.sh script; no joy.  Ran as Application in Terminal, but still just the flash and then nothing.  Surely (!) there must be an easier way of getting a shortcut to a programme on a desktop..?   I'm beginning to pine for the pristine beauty of superhappyuserfriendly Windows!  {:-(




Jack

Edit the script and put a "read" statement at the end. This will pause the script so hopefully will let you see what's happening before the script closes the terminal windows.

eg:

#!/bin/bash
# init
function pause(){
   read -p "$*"
}
 
# ...
# call it
pause 'Press any key to continue...'
# rest of the script
# ...


-- The Mailing List for the Devon & Cornwall LUG http://mailman.dclug.org.uk/listinfo/list FAQ: http://www.dcglug.org.uk/listfaq
-- 
The Mailing List for the Devon & Cornwall LUG
http://mailman.dclug.org.uk/listinfo/list
FAQ: http://www.dcglug.org.uk/listfaq