Pb with psexec to execute remote commands
Hi,
I try to performe a search of string into some files in a remote process for a reporting into the Visual build console. This step is write like this : the command works if i use it in a console like cmd.exe but doesn't work if i use it in a step. The output of this step is only : ---- Erreurs de compilation ---- ..... I try lot of solution but nothing works ! Could u help me ? Thks for all comments :) Delom Florian |
Example of command i want to script :
psexec \\MA0210140 -u TOTO -p TOTO -e bash -c "cd d:/projet ; echo ""---- Erreurs de compilation ----"" ; find -name \*Debug.err -exec grep -c -e -H ""[1-9][0-9]*\ error\(s\)"" {} \; 2> /dev/null" |
Hmm, not sure. You could try prefixing your command-line with the %DOSCMD% macro to explicitly tell the command to execute withing a cmd.exe console...
|
It doesn't work... sorry... :(
|
In fact it works... but sometimes it doesn't. I compile the step once it works but if i recompile it another it doesn't and exit bash with a broken pipe error.... Have u an explanation for that problem ? The problem doesn't exist if i use my command line in console like cmd. I can execute it lot of time without problem.
|
All times are GMT -5. The time now is 05:45 PM. |
Copyright © 1999-2023 Kinook Software, Inc.