Re: command line question SOLVED Thanks!

Kezdőlap
Csatolmányok:
Üzenet email-ben
+ (text/plain)
Üzenet törlése
Válasz az üzenetre
Szerző: kitepilot@kitepilot.com
Dátum:  
Címzett: Main PLUG discussion list
Tárgy: Re: command line question SOLVED Thanks!
> Now, I just need to have the script to automagically close terminal.

#!/bin/bash

FILE-"${1}"
SHELL_PID=$(ps|grep -vE 'grep$|ps$|^[[:space:]]*PID'|awk '{print $1}')
nohup gwenview "${FILE}" >/dev/null 2>&1 &
sleep 1
kill -9 ${SHELL_PID}
#END#


Enjoy... :)
---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change your mail settings:
http://lists.phxlinux.org/mailman/listinfo/plug-discuss