setting current dir of remote shell

This is a discussion on setting current dir of remote shell within the OpenSSH Development forums, part of the Networking and Network Related category; I have a command that will upload stuff from the current dir within a local copy of a web site ...


Go Back   Usenet Forums > Networking and Network Related > OpenSSH Development

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-27-2007
Dave Yost
 
Posts: n/a
Default setting current dir of remote shell

I have a command that will upload stuff from the current dir within a
local copy of a web site to the corresponding dir on the web server.
http://Yost.com/computers/yostupload

The command has a -l argument that will log you in to the server via
ssh. So far so good.

But I would like this -l argument to set the current dir on the
remote host so it is the dir corresponding to the current dir on the
local host.

I can't see how to do that with ssh, and if I try something like the
following, ssh barfs.

#!/bin/zsh

ssh foo.com <<< cd website/bar/baz <& 0

Seems to me that it would be useful for ssh to have an optional
parameter that specifies an initial command to execute in the remote
shell before turning over control to the local user. I would use
that option to run a cd command.

Thanks

Dave
_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev@mindrot.org
http://lists.mindrot.org/mailman/lis...enssh-unix-dev
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 07:02 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0