Vote count: 0 Tech Gurus, I have a requirement to run Linux commands through C/C++ program. The program should take an argument and should retu the value that is given by the Linux command. I tried searching through the available data and couldn't find anything matching to my need. Given that I do not know C/C++ programming having difficulty in writing this myself. Any help would be really timely. asked 1 min agoKarthik Kumar Let's block ads! بخوانید...
ادامه مطلبVote count: 0 I have a bash script as below: ------------------------------ #!/bin/bash VAR_A=$(echo "cat //artifact/fileName" | xmllint --shell BuildResult.xml | sed '/^/ >/d' | sed 's/]*.//g' | tr -d 'n' | awk -F"-------" '{print $3}') echo $VAR_A ------------------------------ I have jenkins installed on a windows machine and via cygwin openssh, I am coecting to the suse linux machine in which this script is residing. When I am calling the above script via an ANT sshexec command configured in Jenkins, it is ruing ok but no output. On the other hand, when I am ruing the same script from within the SUSE Linux system, it is echoing current result. I am not able to figure...
ادامه مطلب