Need ideas: moving stuff to server

Michael Hipp Michael
Sat May 14 10:17:39 PDT 2005


This annoyance has bugged me for a while, would be grateful for a simple 
solution. Here goes ...

I'm developing, say, an init script. I do the development/testing work 
in my favorite editor on my desktop. I don't want to "develop" stuff on 
a production server.

Now I have a working version and want to put it in place on the server. 
Say it needs to land on the server as /etc/init.d/myscript. My only 
access to the server is ssh. So I scp it over. But it lands in my home 
directory. So I then log in via ssh, move it to where it goes, move over 
there, change ownership, change permissions, verify. Something like a 
7-step process (scp, ssh, mv, cd, chown, chmod, ls).

Any way to make this a 1-step process?

Note that on none of my boxes is it allowed to ssh in as root and at 
least half of those steps require superuser privs.

Any thoughts appreciated,
Michael



More information about the Linux-users mailing list