Plink windows to ubuntu batch file sometime fails
- or -
Post a project like this$80
- Posted:
- Proposals: 1
- Remote
- #2176064
- Expired
Description
Experience Level: Entry
Estimated project duration: 1 day or less
On WS 2008R2 Enterprise SP1, running plink.exe version 0.70.0.0, connecting to Ubuntu 16.04.4 LTS, xenial, plink will sometimes work and sometimes fail with: Unable to read from standard input: The handle is invalid.
plink will always work correctly if the batch file is launched directly from the windows explorer.
plink will sometimes fail when the batch file is launched from within an application, that has been launched as administrator.
I need plink to always work when launched from with an application that has been launched as administrator.
This is an example of the batch file plink is running.
echo -e "youGuessedIt\n" | sudo -S nginx -t -c /home/userNoOne/Documents/nginx.conf &> /home/userNoOne/Documents/nginxResult.txt
echo -e "youGuessedIt\n" | sudo -S tail /var/log/nginx/error.log.1 >> /home/userNoOne/Documents/nginxResult.txt
echo -e "youGuessedIt\n" | sudo -S tail /var/log/nginx/error.log >> /home/userNoOne/Documents/nginxResult.txt
plink will always work correctly if the batch file is launched directly from the windows explorer.
plink will sometimes fail when the batch file is launched from within an application, that has been launched as administrator.
I need plink to always work when launched from with an application that has been launched as administrator.
This is an example of the batch file plink is running.
echo -e "youGuessedIt\n" | sudo -S nginx -t -c /home/userNoOne/Documents/nginx.conf &> /home/userNoOne/Documents/nginxResult.txt
echo -e "youGuessedIt\n" | sudo -S tail /var/log/nginx/error.log.1 >> /home/userNoOne/Documents/nginxResult.txt
echo -e "youGuessedIt\n" | sudo -S tail /var/log/nginx/error.log >> /home/userNoOne/Documents/nginxResult.txt
David R.
100% (1)Projects Completed
1
Freelancers worked with
1
Projects awarded
50%
Last project
19 Aug 2016
United States
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-
There are no clarification messages.
We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
Cookie Settings
Accept All Cookies