Re: How to reduce inputting command parameters?



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
.



Relevant Pages

  • Some minor Questions
    ... Say if i wanna clear the previous record, ... any better command that i can directly clear the ... I wanna let it scan from the first row to the ... dun want to copy cells by cells. ...
    (microsoft.public.excel.programming)
  • Re: Query - Pexpect
    ... > I wanna do some automation work using "pexpect". ... > I have an application which must be invoked from the command line in ...
    (comp.lang.python)
  • Re: 20 basic Linux newbie commands to identify the system
    ... but why would a newbie want to know any of this? ... What's the command I need to make my soundcard work on this system? ... I wanna know how to configure the sound card so I can play an mp3. ... Use the windows control panel ...
    (comp.os.linux.setup)
  • Re: 20 basic Linux newbie commands to identify the system
    ... but why would a newbie want to know any of this? ... What's the command I need to make my soundcard work on this system? ... I wanna know how to configure the sound card so I can play an mp3. ... Use the windows control panel ...
    (comp.os.linux.misc)
  • Re: 20 basic Linux newbie commands to identify the system
    ... but why would a newbie want to know any of this? ... What's the command I need to make my soundcard work on this system? ... I wanna know how to configure the sound card so I can play an mp3. ... Use the windows control panel ...
    (comp.os.linux.questions)