Solve : How to send the data to an application invoked from ssh?

Microsoft Microsoft DOS in Microsoft 3 years ago

  1   0   0   0   0 tuteeHUB earn credit +10 pts

5 Star Rating 1 Rating

Hi All,
         I am newbiee for writing batch files.I have WRITTEN a batch file to log into linux machine from my windows through putty and to invoke an application on the remote end. I have to send the data to the application from my windows machine. My batch file looks like this....

type image | putty.exe -t -l root -pw anil123 -m anil.txt 10.50.25.53

where as the image contains the data to be sent to application.
anil.txt contains the application to be invoked.

what i have observed was, i am able to loginto the linux machine and able to invoke the application but not able to send the data to the application.My control is GETTING STUCK in the application which i have invoked and with the pipe command i am not able to send the data to application.....

please HELP me.......thanks in advance

Anil.
    I have asked for this to be re-directed to the correct forum.your application anil123 takes an image file as an input correct?? you can just SCP over the image file, then invoke the application.Thanks for the quick reply......

In my batch file, Image is the file which contains the data to be sent to the application that is invoked on the linux machine.....

linux machine to be specific i am working on a embedded device on which uClinux o.s is
running. so i can't winscp the image on to board........


Anil.

Posted on 21 May 2022, this text provides information on Microsoft related to Microsoft DOS in Microsoft. Please note that while accuracy is prioritized, the data presented might not be entirely correct or up-to-date. This information is offered for general knowledge and informational purposes only, and should not be considered as a substitute for professional advice.

Take Quiz To Earn Credits!

Turn Your Knowledge into Earnings.

tuteehub_quiz

Tuteehub forum answer Answers

Post Answer

No matter what stage you're at in your education or career, TuteeHub will help you reach the next level that you're aiming for. Simply,Choose a subject/topic and get started in self-paced practice sessions to improve your knowledge and scores.