Re: Bash script help ?

2003-02-05 Thread lardi
>Jon Haugsand wrote: >> * [EMAIL PROTECTED] >> >>>#!/bin/bash >>>1st_arg=$1 >> >> number not allowed in front. >> >> >>>prosesses=`lsof -i` >>>prosessid=`echo $prosesses | gawk /1st_arg/'{print $2}'` >> >> Cannot understand this to work in gawk. In any case, you might do >> this a lot more e

Bash script help ?

2003-02-05 Thread lardi
I'm trying to get a pidof a php script by capturing the path: like /home/somebody/my_script which will be the first arg. to the bash script Could anybody tell me what's wrong with this script ? I'm new to scripting in general so any help would be apreciated ! #!/bin/bash 1st_arg=$1 prosesses=`l