Use screen command in AIX to scp file to other server


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Use screen command in AIX to scp file to other server
# 8  
Old 05-01-2014
Try to understand my question first and then you may reply if you have answer to that otherwise leave it for others to respond

obviously this is understood scp is used to transfer files; using screen means that command to use scp using screen in virtual terminal which I believe a unix administrator should have definitely understood.


Additionally,you spared enough time to write 10 lines of questions.Had you tried understanding the question you would not have wasted this much time


Best regards,
Vishal
# 9  
Old 05-01-2014
Look at this example for instance :

You connect to server A with putty from your laptop L with intention to use scp to copy a file from Server A to Server B.

When connected to Server A, you initiate the scp command to Server B and it starts copying.

During the copying your laptop L experiences network problems and putty session disconnects from the server A effectively ending scp operation uncompleted.

This is where you can use screen (but also other various other tools) before scp-ing.
Connect with putty, run screen, start scp and detach the screen session.
Now you can close putty or experience problems with your laptop L while the screen session in active on Server A.

List the sessions with screen -ls
Attach the session with screen -dr <session from list>

Check out the manual for more advanced options like session logging and naming.

Hope that clears things out.
Regards
Peasant.
This User Gave Thanks to Peasant For This Post:
# 10  
Old 05-01-2014
Failing that, use cat file on one screen, then open a new file with the editor of your choice on a separate screen and type it in. Make sure you save it. Smilie


Smilie Okay, perhaps a bit flippant, but what you seem to want (based on thanking Peasant) is job control. The scp is irrelevant in fixing your problem, it's just the actual task.

Maybe you should have read the manual pages for screen first and asked a sensible, concise question that stripped out the unnecessary reference to scp Smilie You just confused everyone. Always try to get the smallest illustration of the problem you can and it stops everyone wasting their time, oh and perhaps you could have answered the questions posed too, rather than just bleat on.



Regards,
Robin
# 11  
Old 05-01-2014
Closing the thread - the Op will not be able to answer anymore in this forum.
These 5 Users Gave Thanks to zaxxon For This Post:
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Need some help regarding file transfer between server (sftp/scp)

Hi All, Need some help regarding file transfer between server. Suppose we have system-A and system-B. To transfer file from system-A to system-B we usually share the public keys of system-A to system-B and do scp/sftp to transfer a file. Is it possible that public key of system-B can be... (3 Replies)
Discussion started by: abhi_123
3 Replies

2. AIX

ASK | How to scp command AIX to windows

Hii Master, im will copy file/directory aix to windows with scp commandline, but some error below: Note: If ping to 172.16.0.250 reply and was connected, and was open/allow port 22 at windows server inbound In aix finish installing ssh in windows finish installing winscp my... (3 Replies)
Discussion started by: williamen
3 Replies

3. AIX

How to copy file from Windows to AIX using SCP?

Hi I'd like to copy file ( or directory ) from a window server to an unix server using scp command, something like this scp -rp admin@10.0.99.99:C:\Documents and Settings\abc.txt /home/oracle/abc.txtI tried testing something like command above but nothing worked. Somebody help !! Thank you (7 Replies)
Discussion started by: bobochacha29
7 Replies

4. Shell Programming and Scripting

I want to scp file from one server to another, both server have different user name and

i want to scp file from one server to another. both server have different user name and it needs to give password to transfer file.how can we mention password in the script itself so that we need not mention password while running the script. Say from servers cpli with user abc and file path /opt... (7 Replies)
Discussion started by: Moon1234
7 Replies

5. Shell Programming and Scripting

How to scp File from root user in one server to say crt user in another server and avoid password?

Can someone help in writing some script through which I can transfer file (scp) from root user in abc server to crt user in hfg server and can give the crt user password in script itself so that it doesn't prompt me every time for password (4 Replies)
Discussion started by: Moon1234
4 Replies

6. UNIX for Dummies Questions & Answers

scp to get a file from windows desktop to UNIX server

Hi, I want to use scp to upload file to my unix server. i am using this: scp D:\testr.txt unixuser@unixhost:/path it returns an error: ssh: D: host/servname not known i am not sure how to tell path of my D drive in the command and how will command understand it has to pick from my... (5 Replies)
Discussion started by: Kohli
5 Replies

7. Solaris

how scp a file to server with space in the directory name

Hello forum, I’m trying to get someone else’s log rotation & sync script working. The ksh script is sending daily compressed log files to a Windows RSA envision server. The name of the directory is “CA SITEMINDER_<IP address of the sending server>”. The servers we are sending from are a mix of... (3 Replies)
Discussion started by: TKD
3 Replies

8. Shell Programming and Scripting

scp file to another server without asking for password

hi I tried reading some of the threads w.r.t scp/sftp file to another server in the same network without asking for password while copying files.....but couldnot succeed. i have generated the public key for the system using "ssh-keygen -t " and kept it in the .ssh/authorized_keys file. ... (8 Replies)
Discussion started by: aemunathan
8 Replies

9. UNIX for Advanced & Expert Users

Using SCP command in IBM AIX to download file from remote to local system

Hi, When i run the code in solaris unix machine, the file from remote server is getting downloaded. but when i use the same code in IBM AIX remote machine, it is not running. It is saying "Erro during scp transfer." Below is the code. Please give some resolution. SCPClient client = new... (1 Reply)
Discussion started by: gravi2020
1 Replies

10. UNIX for Dummies Questions & Answers

File Missing When Grabbing Files from SFTP Server using SCP Command

Hi, I have this problem where sometimes my files would go missing when I schedule my crontab to run the SCP command to get file from the SFTP server. My crontab will run the scripts at an interval of 3 minutes (between the two scripts) The following is the setting in my crontab. ... (1 Reply)
Discussion started by: gingervitus
1 Replies
Login or Register to Ask a Question