Re: How to reduce inputting command parameters?
- From: Stephane Chazelas <stephane_chazelas@xxxxxxxx>
- Date: 28 Jan 2008 10:28:03 GMT
On Mon, 28 Jan 2008 01:11:14 -0800 (PST), enjoyfate@xxxxxxxxx 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
.
- References:
- How to reduce inputting command parameters?
- From: enjoyfate
- How to reduce inputting command parameters?
- Prev by Date: Re: How to pass a null parameter to a function
- Next by Date: Re: Script to create files
- Previous by thread: How to reduce inputting command parameters?
- Next by thread: Re: How to reduce inputting command parameters?
- Index(es):
Relevant Pages
|