On 1 November 2010 14:41, Chris G <cl@isbd.net> wrote:
What I actually want to do at this particular moment is log onto my web server as www-data and change to different directories according to what I want to edit, e.g. :-
'info' - logs me on to the server as www-data and takes me to /var/www/info 'boat' - logs me on to the server as www-data and takes me to /var/www/boat etc.
Yes, I know it's rather trivial, but I find this sort of thing very useful.
Sounds like making a mountain out of a mole hill to me, when all you have to do upon initial log in is 'cd /to/the/dir' thats all your going to cut out? I can't see you doing; www-data@machine info www-data@machine boat as you can't parse an argument to an interactive session? I.e. AFAIK you either 'ssh user@machine' and have an interactive session or parse arguments that are executed and thats it, you can't parse an argument and have an interactive session I don't believe. -- Regards, James. http://www.jamesbensley.co.cc/ There are 10 kinds of people in the world; Those who understand Vigesimal, and J others...?