|
Re: lug-bg: change passwd script
- Subject: Re: lug-bg: change passwd script
- From: Vesko Nedev <vesko@xxxxxxx>
- Date: Fri, 18 Feb 2005 11:36:03 +0200
Това ще свърши работа.
Благодарности!
On Fri, 2005-02-18 at 09:55 +0200, Denislav Ganchev wrote:
> Ето един пример на expect. По този начин си монтирам директорики от
> файлов сървър при зареждане на ОС-а.
> кръц---->
> #!/usr/bin/expect
> log_file -a /tmp/expectlog
> spawn /bin/bash
>
> send_user "\n"
> send_user "Mounting remote dirs"
>
> send "/sbin/mount -t smbfs -o username=user //fsserver/music /mnt/music
> 1> /dev/null
> "
> sleep 1
> expect "Password*"
> send "xxx
> "
> send_user "\n"
--
Vesko Nedev <vesko@xxxxxxx>
============================================================================
A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers).
http://www.linux-bulgaria.org - Hosted by Internet Group Ltd. - Stara Zagora
To unsubscribe: http://www.linux-bulgaria.org/public/mail_list.html
============================================================================
|
|
|