Forum Discussion
amitkumarlogs
6 years agoNew Contributor
I am novice to this tool and the commnnity also. I am able to invoke the putty by above code but I don't want to invoke it. I want to run it in back ground. And I have some commands which I need to run in putty after system logs into putty.
below are the commands which i want to execute in putty after i logged in:-
sudo su - user cd /var/opt/user/logs grep "someString" allTheLogs.log
I tried to convert the above commands into .bat file and calling to the function. But it didn't work:-
Process proc = Runtime.getRunTime.exec("C://Users//ABC//bat//logic.bat") proc.waitFor()
After that this allTheLogs.log will contain all the logs which is fetched by putty.
I need to verify the logs data with my data.
Please help me to resolve this issue. Any leads would be appreciated.
HimanshuTayal - Any support would be appreciated.
Related Content
- 7 years ago
- 2 years ago
- 11 years ago
Recent Discussions
- 6 days ago