Pathologically Eclectic Rubbish Lister PerlMonks

### Re^2: run perl script on remote server

by sumit07 (Novice)
 on Sep 08, 2012 at 06:18 UTC ( #992437=note: print w/replies, xml ) Need Help??

in reply to Re: run perl script on remote server
in thread run perl script on remote server

for ssh to server A do we need another software lyk putty or cygwin

Replies are listed 'Best First'.
Re^3: run perl script on remote server
by NetWallah (Abbot) on Sep 08, 2012 at 23:23 UTC
This is the first clue you have given that you are running Windows machines.

IF these machines are on the same domain, and/or IF your login credentials on C have access to the shares on A and B, you can do something like this from the command-line on machine C:

C:\> perl  \\A\Path\to\code\share\codefilename.pl \\B\path\to\data\Dat
+afile.fil
[download]
Then your prograam can use the diamond operator to access the file, without being programmed explicitly for file access on a remote machine.

If the machines do not have explicit shares, and if you have administrator priviledges,
You can access the "hidden" shares at the root of the drive like:

  \\A\C$\path\to\data-or-code [download] Note : C$ indicates the C:\ drive.

I hope life isn't a big joke, because I don't get it.
-SNL

Re^3: run perl script on remote server
by bitingduck (Chaplain) on Sep 08, 2012 at 17:23 UTC

I have no idea how to do things in windows-- it's pretty straightforward on a typical *nix setup. NetWallah and Anonymous Monk both posted suggestions that will likely work with windows.

Create A New User
Node Status?
node history
Node Type: note [id://992437]
help
Chatterbox?
and all is calm...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (11)
As of 2016-12-08 20:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
Voting Booth?
On a regular basis, I'm most likely to spy upon:

Results (145 votes). Check out past polls.