Mailing List Archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [tlug] deleting a local list of filenames from remote server



Charles Muller wrote:
>     ssh user@example.com 'cd public_html/ddb/pcache && xargs rm'  < pcache-update;
>   

If you understand what this does the problem will be obvious.

ssh user@example.com remote_command < pcache-update

says run remote_command on user@example.com and send the contents of the file *pcache-update in your current local directory* over the network to the standard input of remote_command.

Edward



Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links