william-r
10/31/2017 - 9:19 PM

Write PID to text file

Write the PID using the linux command "pidof"

#!/bin/bash
pidof "gedit" >> ~/text.pid