Kinook Software Forum

Kinook Software Forum (https://www.kinook.com/Forum/index.php)
-   [VBP] Third Party Tools (https://www.kinook.com/Forum/forumdisplay.php?f=3)
-   -   Pb with psexec to execute remote commands (https://www.kinook.com/Forum/showthread.php?t=675)

Florian 12-02-2004 09:14 AM

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 :


/dev/null"]]>
YES
3
%NG_COMPILE_DEBUG%
1
Verification de la compilation DEBUG
1


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

Florian 12-02-2004 12:14 PM

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"

kevina 12-02-2004 12:29 PM

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...

Florian 12-02-2004 12:38 PM

It doesn't work... sorry... :(

Florian 12-02-2004 01:21 PM

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 02:19 PM.


Copyright © 1999-2023 Kinook Software, Inc.