473,545 Members | 1,890 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Plink error

6 New Member
My script is simple:

Expand|Select|Wrap|Line Numbers
  1.  
  2.  #!/usr/bin/perl
  3.  
  4.  `plink alcatel@50.1.1.10 -pw alcatel ls /usr`;
  5.  

The error message is:
Unable to open connection:
Name or service not known
Sep 26 '08 #1
6 3578
Icecrack
174 Recognized Expert New Member
First off please use code tags,

Second thats not related to perl, unless it works in Shell for *nix.

also why is ls should'nt you be piping /usr in there??

eg.

Expand|Select|Wrap|Line Numbers
  1.  Plinx XXXXXXXXXXX xxxxx@xxx || ls /usr
Sep 26 '08 #2
akyuceisik
6 New Member
But when iexecute this command in prompt line, it works.

In perl script , if i put this command between `'s, it must execute this command.
Sep 26 '08 #3
Icecrack
174 Recognized Expert New Member
ok,


try

Expand|Select|Wrap|Line Numbers
  1. system(`plink alcatel@50.1.1.10 -pw alcatel ls /usr`);
Sep 26 '08 #4
akyuceisik
6 New Member
It's OK now, but not with `'s with 's :-)

One more question,

system('mail ahmet@gmail.com -s "trial" "trial"');

when i write this the script hangs on.
Sep 26 '08 #5
Icecrack
174 Recognized Expert New Member
almost for got to get more detail, it may hang but thats because we didnt end it if it had errors.



try

Expand|Select|Wrap|Line Numbers
  1. system('mail ahmet@gmail.com -s "trial" "trial"') || die "Error: $!";


and please put all your code in code tags
Sep 26 '08 #6
akyuceisik
6 New Member
sorry, ill do it nex time,

thanks for your help.
Sep 26 '08 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

13
6580
by: deko | last post by:
I use this convention frequently: Exit_Here: Exit Sub HandleErr: Select Case Err.Number Case 3163 Resume Next Case 3376 Resume Next
7
4984
by: p | last post by:
WE had a Crystal 8 WebApp using vs 2002 which we upgraded to VS2003. I also have Crystal 9 pro on my development machine. The web app runs fine on my dev machine but am having problems deploying. I created the websetup and built the MSI, have the bundled version. Copied to webserver and ran Websetup.msi. Said I had to remove old version,...
2
8623
by: Al | last post by:
I'm currently attempting to use PLink (the console component of PUTTY - see http://www.chiark.greenend.org.uk/~sgtatham/putty/) as a Telnet component as I may in future need to change to using SSH and this seems an ideal solution. I'm running it as a process and re-directing the standardinput/output/error However, despite working through all...
2
2207
by: Rennie7676 | last post by:
Hi, I'm trying to write VC++ code for using Plink (command-line tool of PuTTY) interactively from within my program which is a console type windows application. The basic purpose is to run commands on a Linux server remotely from my windows application through encrypted ssh provided by the Plink tool. And the result returned from the server...
10
13117
by: Justin | last post by:
We have a simple shell script called testsp.sh (located at /home/ userid) Within the shell script, the following command is called: db2 -tvf callsp.sql When the shell script is run in command line mode, it works as expected. and running db2 -tvf ... in command line it also works. The issue occurs when running using "plink"
1
6018
by: paafio | last post by:
Hi I'm using ActivePython 2.5 on Mac OS X. I would like to know if there is a way to call PLINK--the Genome Wide Association software-- from Python
2
3875
by: sowm18 | last post by:
Hi, Here iam developing the .exe file for the Distribution and Deployment in other windows machines where TCL and SSH client is not installed. I had written a script in TCL to automate SSH Login to the Nodes and execute some commands. That script uses Expect package and plink.exe(as it acts as SSH client) Now in my machine plink.exe is...
2
19416
hyperpau
by: hyperpau | last post by:
Before anything else, I am not a very technical expert when it comes to VBA coding. I learned most of what I know by the excellent Access/VBA forum from bytes.com (formerly thescripts.com). Ergo, I will be writing this article intended for those who are in the same level, or maybe lower, of my technical knowledge. I would be using layman's...
0
2897
hyperpau
by: hyperpau | last post by:
Before anything else, I am not a very technical expert when it comes to VBA coding. I learned most of what I know by the excellent Access/VBA forum from bytes.com (formerly thescripts.com). Ergo, I will be writing this article intended for those who are in the same level, or maybe lower, of my technical knowledge. I would be using layman's...
0
7410
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7668
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7923
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7437
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7773
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5343
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
4960
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3448
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
722
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.