RE: How to write this script?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> 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


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux