Help needed with simple bash script
Hi,
How would I write a script that displays a jpg using xv (I know this part), and then after 10 seconds closes xv, so that bash moves on to the next line of the script? |
Perhaps use 'sleep' to give the 10 second pause and then 'pkill' to kill the process??
|
Try to launch the process in background, retrieve the Process ID using $!, sleep 10 seconds then kill it:
Code:
xv file.jpg & |
Quote:
|
Good mark this thread as SOLVED
|
All times are GMT -5. The time now is 03:00 AM. |