How to reduce inputting command parameters?
am 28.01.2008 10:11:14 von enjoyfate
When i want to mount the windows sharing directories, always input
the command:
#smbmount //192.168.1.103/c$ /mnt/usb1 -o
codepage=cp936,username=administrator
Every time putting so long command is tedious,I wanna just put
#smbmount //192.168.1.103/c$ /mnt/usb1
to have the same effect ,but i don't know where to put the "-o
codepage=cp936,username=administrator" ,How to that ?Thanks
Re: How to reduce inputting command parameters?
am 28.01.2008 11:28:03 von Stephane CHAZELAS
On Mon, 28 Jan 2008 01:11:14 -0800 (PST), enjoyfate@gmail.com wrote:
> When i want to mount the windows sharing directories, always input
> the command:
> #smbmount //192.168.1.103/c$ /mnt/usb1 -o
> codepage=cp936,username=administrator
> Every time putting so long command is tedious,I wanna just put
> #smbmount //192.168.1.103/c$ /mnt/usb1
> to have the same effect ,but i don't know where to put the "-o
> codepage=cp936,username=administrator" ,How to that ?Thanks
mysmbmount() {
smbmount "$@" -o codepage=cp936,username=administrator
}
Note that there exists alternative ways of mounting CIFS shares
based on fuse (file system in user space) that you may be
interested in as it could save you even more typing.
--
Stephane
Re: How to reduce inputting command parameters?
am 28.01.2008 13:03:37 von Bill Marcum
On 2008-01-28, enjoyfate@gmail.com wrote:
>
>
> When i want to mount the windows sharing directories, always input
> the command:
> #smbmount //192.168.1.103/c$ /mnt/usb1 -o
> codepage=cp936,username=administrator
> Every time putting so long command is tedious,I wanna just put
> #smbmount //192.168.1.103/c$ /mnt/usb1
> to have the same effect ,but i don't know where to put the "-o
> codepage=cp936,username=administrator" ,How to that ?Thanks
man fstab