Thanks very much Steve. The quotes worked fine thankyou! I plan to add the commands as aliases to my .bash_profile now so I can turn on/off networking without removing the PC card.
alias netdown='su - root -c "cardctl eject"' alias netup='su - root -c "cardctl insert"' Simon -- Simon Rowe email: [EMAIL PROTECTED] www: http://www.ewor.co.uk/ On Fri, 9 Mar 2001, Stephen Oxley wrote: > -----BEGIN PGP SIGNED MESSAGE----- > > Hello Simon, > > On Fri, 9 Mar 2001 10:17, Simon Rowe wrote: > [...] > > su - root -c cardctl eject > > Try putting " marks around the cardctl eject command. I have a feeling that > the su -c is passing the cardctl OK, but dropping the eject option. > > Ie, your command would be: > > su - root -c "cardctl eject" > > > I have tried it specifying the socket number too -just in case! > > Any suggestions, alternative methods (sudo I suppose??) would be great. > > Sudo is a good one, as you don't need the root password to run the command. > Setting up the sudo config file can be a bit tricky, as it doesn't allow > wildcards in the commands. > > > Thanks for you help > > Simon > > No problems, > > Steve > > - -- > ObCynicalComment: > Miss, n.: > A title with which we brand unmarried women to indicate that > they are in the market. > -- Ambrose Bierce, "The Devil's Dictionary" > > Stephen Oxley, Shared Systems, > G44, Building 28, Monash University, > Wellington Road, Clayton, Victoria, Australia, 3800