Linux / UNIX Tech Support Forum
This is a discussion on remote login and copy files over ssh within the Shell scripting forums, part of the Development/Scripting category; Hi, One of my linux machine create somefiles over web. I want a script to copy the same file on ...
|
Register free or login to your existing account and remove all advertisements. |
|
|||||||
| Shell scripting You can discuss the shell scripting, request shell scripts and scripting techniques |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Hi,
One of my linux machine create somefiles over web. I want a script to copy the same file on remote computer using ssh and scp. when i run PHP Code:
Regards Last edited by asim.mcp; 11-30-2009 at 07:15 PM. |
| Sponsored Links | ||
|
|
|
||||
|
Short and simple (no need to run ssh):
Code:
scp user@server1:/path/to/file user@server2:/path/to/dest
__________________
Vivek Gite Linux Evangelist |
![]() |
| Tags |
| linux , openssh , scp , ssh |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Script To Copy Files From Windows XP To Linux Server | haykins | Shell scripting | 6 | 09-18-2009 01:12 PM |
| Check if remote files exist (periodically) | pixelboss | Shell scripting | 2 | 02-28-2009 12:08 PM |
| How to copy and paste files in FreeBSD | enochalbert | All about FreeBSD/OpenBSD/NetBSD | 1 | 09-01-2008 08:12 PM |
| Script to delete a set of files in Remote machine | ashok333 | Shell scripting | 4 | 05-09-2008 08:24 PM |
| How to copy . files from current directory | ricc | Linux software | 1 | 06-10-2006 10:23 PM |