Page 1 of 1
Problem with DSExecute command
Posted: Fri Sep 15, 2006 6:32 am
by hhh
While using this command in routine : Call DSExecute("UNIX",grep 'File' PathName,Output,SystemReturnCode)
I am getting following warning msg : 'WARNING: Variable 'grep' never assigned a value'
could you please provide your inputs on this warning
regards,
Hiten
Posted: Fri Sep 15, 2006 7:21 am
by OttMAdpttch
Hiten,
You need to set a variable to the Unix command you wish to execute and then use this variable in the DSExecute funtion.
Cmd = 'grep ':Filename:' ':Pathname
Call DSExecute('UNIX',Cmd,Output,SystemReturnCode)
Posted: Fri Sep 15, 2006 7:30 am
by hhh
Thanks Mark!!!
[quote="OttMAdpttch"]Hiten,
You need to set a variable to the Unix command you wish to execute and then use this variable in the DSExecute funtion.
Cmd = 'grep ':Filename:' ':Pathname
Call DSExecute('UNIX',Cmd,Output,SystemReturnCode)[/quote]
Posted: Fri Sep 15, 2006 1:19 pm
by kduke
Mark
Welcome to the dark side. I see you are posting now. Great. Have fun.