Access a remote computer using perl


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Access a remote computer using perl
# 1  
Old 03-11-2009
Access a remote computer using perl

Dear all,

Where can i find documentation on how to access a remote computer using a perl script? I search to the internet but i can not find something straightforward to this issue.
Which is the easiest way to do that?
What i would like to do is to access a remote computer access a directory there and manipulate some files.


Best Regards,
Christos
# 2  
Old 03-11-2009
How do you want to access those files? Telnet? RSH? SSH? CIFS? NFS?
For the first three, decide on one, go to search.cpan.org, and search for the appropriate Net::* module
For the other two, take a look at man mount
# 3  
Old 03-11-2009
Which is the easiest way to access a remote pc and manipulate remote file using perl?
TELNET SSH or RSH?
# 4  
Old 03-11-2009
They're probably the same, and you should probably use ssh due to the fact that telnet sends information in plain text.
# 5  
Old 03-11-2009
So i guess that when the remote connection is established the remain part of perl code will be executed in the remote computer normally, manipulating the remote files like they way that it would be executed if the perl code was running in the local pc.
Is this correct?
# 6  
Old 03-11-2009
No, absolutely not. The Perl code will still run and operate on the local machine and data. The only thing Net::SSH, Net::Telnet, etc. provide is a way to send shell commands to a remote machine, just as if you'd open an interactive remote session. Think of it as "scripted ssh".

If you want to execute something on the remote machine, create an independent script, copy it to the remote machine, and call it there. Or you build yourself some kind of RPC/MPI mechanism.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

Remote access computer system as a whole not just desktop with GUI

Hi All, I've been looking at various options at administering several servers remotely like: - VNC (don't like the lax security of 8 characters max for a password) and - NX (awesome piece of kit but still limited to a per desktop viewer)... What I'm looking for is a GUI that... (7 Replies)
Discussion started by: ASGR
7 Replies

2. Homework & Coursework Questions

Remote Access vs Local Access

Dear Friends, This is not a problem , it's a course work (UNIX scenario).... As part of it I am searching Remote Attacks and find points as 1. Exploiting a listening service 2. Routing through Unix system that is providing security between 2 or more networks 3. User initiated Remote execution... (1 Reply)
Discussion started by: anespa
1 Replies

3. UNIX for Dummies Questions & Answers

KVM: can't access VM from another computer in same LAN.

DELETE (0 Replies)
Discussion started by: morrison71
0 Replies

4. UNIX for Dummies Questions & Answers

Copying from remote SunOS to local Windows 7 computer

Can someone please help me with copying from remote computer to local computer? I have Winscp installed but for some reason i can seem to get into the server using winscp. I am currently logged on to the server, so its not a case of remote host unavailable. I really am not sure if the syntax... (2 Replies)
Discussion started by: dollypee
2 Replies

5. UNIX for Dummies Questions & Answers

Unix script to create a backup on a remote computer

Hello, I have a problem - I attended a UNIX course a couple of years back but, unfortunately, I don't remember how to write scripts for shell commands. Now I want to make a script that makes a backup of a folder on a remote computer and I have no idea how to begin. :D So the idea is that I want... (3 Replies)
Discussion started by: Benedit
3 Replies

6. UNIX for Advanced & Expert Users

currenlty logged in user on remote computer

Hello everyone Does anyone know, if there is a command that tells you who is logged in on remote host? I'm ssh-ing as root to the remote host and then run whoami but that doesn't tells me who is logged in that particular computer instead shows my remote login. Is there a way to do that?... (2 Replies)
Discussion started by: goude
2 Replies

7. UNIX for Advanced & Expert Users

loggin remote computer as a super user.

hello all, can i loggin remote computer as a super user(i know root user/passwd) and change his access controlle list. if yes please tell me how to do it, i am new to linux. thank you. (6 Replies)
Discussion started by: zius_oram
6 Replies

8. Shell Programming and Scripting

copying files from remote computer

hi, i want to copy files from a remote computer in a network to a specific directory on my PC. ( script ) Forexample , IP of the remote PC is 172.16.5.24 login:aaaa Passw:123 /folder1/file1.txt to my pc folder /fd/awa.txt kinldy help Thanks (2 Replies)
Discussion started by: krabu
2 Replies

9. UNIX for Dummies Questions & Answers

transferring files to and from remote computer

Hi all, i first have to ssh into my university account and then through there another ssh into my office computer, from my home computer. I have been trying to transfer files to and from with no such luck. How do i send a file from home to my office computer. Do I have to send it to my... (6 Replies)
Discussion started by: yogi1
6 Replies

10. UNIX for Dummies Questions & Answers

Need help to access/mount so to access folder/files on a Remote System using Linux OS

Hi I need to access files from a specific folder of a Linux system from an another Linux System Remotely. I know how to, Export a folder on One SCO System & can access the same by using Import via., NFS in the Sco Unix SVR4 System using the scoadmin utility. Also, I know to use mount -t ... (2 Replies)
Discussion started by: S.Vishwanath
2 Replies
Login or Register to Ask a Question