Actually i have to store value of the script output in DOS command prompt variable i.e. the command line logs into putty runs the script and then outputs the result to a variable which i can then utilize. Currently while running the following command it runs the script displays the value and exits after 100 seconds.
Actually i have to store value of the script output in DOS command prompt variable
PUTTY cannot do that. PUTTY is graphical, and displays the result graphically.
The plink utility I mentioned earlier is non-graphical, and prints to the CMD prompt, which you can capture with for -- for is a very, very versatile word in Window CMD.
So your command might look like:
This is a complicated command... The stuff in green happens on your windows machine, the stuff in red happens on myserver, and the stuff in blue happens on server1. If it doesn't work, try each level individually to see where it is breaking down.
-agent insead of -pw would be better if you can use an agent, of course.
Most options can't be specified from the command prompt, they will be taken from "Default Settings" instead. So run PUTTY, select the scrollback you want, and click 'save' with 'default settings' selected.
I need to convince my manager that we need to install plink for facilitation in monitoring over putty.
For example, I have thought of building a java applet which will have buttons say JVM1, JVM2 etc. When one clicks on JVM1, the plink query is run in background fetching sysout logs of a JVM and displaying it on the applet screen. (something like plink.exe ssh server1 /logs/websphere/jvm1/Sysout.log > /local/tmp.txt , then I will use the content of tmp.txt in my local system to write to applet screen) .
Im assuming this is possible via plink rite. cuz it is definitely not possible via putty.
Guys, need your help here. As said, i want to build a monitoring tool to fetch data from linux servers and display it on a GUI Screen made with Java.
So, the tool will have tabs say Tab 1 - Check DB Connection ( Use the data returned by Plink command to ping the db server and display the health as either red or green)
Tab 2 - Check output for last 100 lines sysout of a JVM ( Run the plink command to fetch the last 100 lines and display it on screen )
So, im assuming these simple things will be possible via plink rite? which cannot be done via putty.
Guys, need your help here. As said, i want to build a monitoring tool to fetch data from linux servers and display it on a GUI Screen made with Java.
So, the tool will have tabs say Tab 1 - Check DB Connection ( Use the data returned by Plink command to ping the db server and display the health as either red or green)
Tab 2 - Check output for last 100 lines sysout of a JVM ( Run the plink command to fetch the last 100 lines and display it on screen )
So, im assuming these simple things will be possible via plink rite? which cannot be done via putty.
Hi Friends,
So we have an internal link in my project. We generally login into it with our ids , then enter some generic values to check whether the functionality is working fine. If it is fine, the webpage delivers a successful preview or else throws error.
What i want to do is write a... (3 Replies)
Hi,
I would appreciate some help.
I remotely access, across a VPN, an M5000 and when I connect to the XSCF I can then access the OS using console -d0 and then I can get to the console.
The problem I have is that I need to run something which will take many hours and I can't run it in the... (6 Replies)
Hi All,
I am connecting to SunOs 5.8 server from windows machine through putty. My problem is commands are not showing any colours results. I want to see 'ls' command should list directories in 'red' and files in 'green' etc. How to do it . Please help.
Also How to enable syntax colouring in... (6 Replies)
Dear all
i am new to linux/debian
i run my application on the computer...during startup in bashrc i wrk wid dis script to invoke startx..i do this above command and it works perfectly...
if && ; then
startx -- -br 1>/dev/null
exit 0
fi
i use winscp for file transfer and putty for... (1 Reply)
:confused:Hi
This was installed on the Linux box a few weeks back by a guy that no longer works for us. All worked fine until last week. Now when we connect its just a blank screen with no icons.
I get a whole bunch of errors when starting the service too:
Tue Feb 23 14:29:45 2010
... (1 Reply)
I have a .sh script which was running fine on all the UNIX Servers (AIX, SunSolaris). The script requires two mandatory parameters and many optional parameters. Now at a different client place who are on a Windows Server, when I try to execute the script through MKS Toolkit, there are couple of... (5 Replies)