How to write this script?

Hongwei Li hongwei at wustl.edu
Tue Apr 12 15:33:31 UTC 2005


> Hi, Hongwei Li
>
> #first mount
> mount sever2:/opt /mnt
>
> #filter the output of 'mount' and put it in control file. I think that
> it's
> ok to use the comando mount
> mount | sed -n /server2/p > /tmp/control
>
> #If there is something in '/tmp/control', do what you want
> if [  -s /tmp/control ]; then
>          echo "Here do something"
> fi
> done
>
>
>
> ICL
>
>

Hi,

I've used Paul's sh script and it works.  Thank you anyway.

Hongwei




More information about the fedora-list mailing list