Subject: Re: Remote using command line

Re: Remote using command line

From: Kamil Dudka <kdudka_at_redhat.com>
Date: Wed, 11 Apr 2012 12:22:47 +0200

On Wednesday 11 April 2012 11:39:19 Dmitry wrote:
> Try to send to remote server command "tar cf test.tar test_file.txt"
> As a result of this operation creates archive test.tar in folder
> /home/username. But I want to be able to execute commands not only in
> /home/username directory, but in any directory. How can I implement this
> feature? Before create archive i tried to send command like "cd /
> target_directory" But as a result archive anyway created in /home/username
> directory.

How about specifying an absolute path to the archive?

Kamil
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2012-04-11