command line question SOLVED Thanks!

kitepilot at kitepilot.com kitepilot at kitepilot.com
Tue Jan 29 17:13:23 MST 2013


> 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...   :)


More information about the PLUG-discuss mailing list