<quote who="Barry Rogen"> > To all. > > I have a program that simply execute a unix script. > This script is a two line script that reads... > mt -f /dev/rmt/3m status > /data4/FTP.WORKDIR/check.status > chmod 666 /data4/FTP.WORKDIR/check.status > > When I run the program from TCL, the program performs beautifully. > When I try to execute this program from another program (using > a basic EXECUTE statement), it fails every time
I may be failing because the environment the calling program is executing as doesn't have a PATH variable setup correctly. Try putting the full path to the executables, I.e.: /usr/bin/mt and /bin/chmod HTH, Karl > > If I however change to a superuser and run this program, the > execute statement performs as it should and I get the desired > results. > > It is not a permissions problem, since I can run the program > that executes > the script from TCL (as a non-superuser) > > UniVerse 10.0.19 HPUX 11.0 > > Any ideas, thoughts, comments, suggestions..... > > > Cheers, > > Barry Rogen > PNY Technologies, Inc. > Senior Programmer/Analyst > (973) 515 - 9700 ext 5327 > [EMAIL PROTECTED] > > ----------------------------------------------------- > Far better it is to dare mighty things, to win > glorious triumphs even though checkered by > failure, than to rank with those poor spirits who > neither enjoy nor suffer much because they live > in the gray twilight that knows neither victory > nor defeat. t. roosevelt > ---------------------------------------------------------------- > > > > > NOT INTENDED AS A SUBSTITUTE FOR A WRITING > > NOTHING IN THIS E-MAIL, IN ANY E-MAIL THREAD OF WHICH IT MAY BE A PART, OR > IN > ANY ATTACHMENTS THERETO, SHALL CONSTITUTE A BINDING CONTRACT, OR ANY > CONTRACTUAL OBLIGATION BY PNY, OR ANY INTENT TO ENTER INTO ANY BINDING > OBLIGATIONS, NOTWITHSTANDING ANY ENACTMENT OF THE UNIFORM ELECTRONIC > TRANSACTIONS ACT, THE FEDERAL E-SIGN ACT, OR ANY OTHER STATE OR FEDERAL > LAW OF > SIMILAR SUBSTANCE OR EFFECT. THIS EMAIL MESSAGE, ITS CONTENTS AND > ATTACHMENTS > ARE NOT INTENDED TO REPRESENT AN OFFER OR ACCEPTANCE OF AN OFFER TO ENTER > INTO > A CONTRACT. NOTHING IN THIS E-MAIL, IN ANY E-MAIL THREAD OF WHICH IT MAY > BE A > PART, OR IN ANY ATTACHMENTS THERETO SHALL ALTER THIS DISCLAIMER. > > This e-mail message from PNY Technologies, Inc. is for the sole use of the > intended recipient(s) and may contain confidential and privileged > information. > Any unauthorized review, use, disclosure or distribution is prohibited. If > you > are not the intended recipient, please contact the sender by reply e-mail > and > destroy all copies of the original message. > ------- > u2-users mailing list > [email protected] > To unsubscribe please visit http://listserver.u2ug.org/ > -- karl _/ _/ _/ _/_/_/ ____________ __o _/ _/ _/ _/ _/ ____________ _-\<._ _/_/ _/ _/_/_/ (_)/ (_) _/ _/ _/ _/ ...................... _/ _/ arl _/_/_/ _/ earson [EMAIL PROTECTED] -- IT Director, ATS Industrial Supply, Inc. http://www.atsindustrial.com Toll-free: 800-789-9300 x29 Direct2Desk: 801-978-4429 Facsimile: 801-972-3888 -- ------- u2-users mailing list [email protected] To unsubscribe please visit http://listserver.u2ug.org/
