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 ...
|
|||||||
| 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; 30-11-2009 at 06: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 | 18-09-2009 12:12 PM |
| Check if remote files exist (periodically) | pixelboss | Shell scripting | 2 | 28-02-2009 11:08 AM |
| How to copy and paste files in FreeBSD | enochalbert | All about FreeBSD/OpenBSD/NetBSD | 1 | 01-09-2008 07:12 PM |
| Script to delete a set of files in Remote machine | ashok333 | Shell scripting | 4 | 09-05-2008 07:24 PM |
| How to copy . files from current directory | ricc | Linux software | 1 | 10-06-2006 09:23 PM |