Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Compiling C program in Sun OS 5.9

Status
Not open for further replies.

Vnjeru

Programmer
Jan 15, 2010
1
KE
Hi everyone,

I compiled a .pc file(gcc compiler) under Sun OS 5.9 to generate an executable program called 4005,to run on Sun OS 11.The program is then called from a script Batch.sh invoked through a crontab.

Before the compilation the program was being launched from the crontab and running.After i compiled it.. it no longer runs when the script batch.sh is invoked. However,if i run the program 4005 directly by going to the /bin/ folder where it is stored. It runs.

Has anyone encountered this issue before? I will appreciate your help.
 
It would be helpful to see what the error messages are. From what you say, my guess is that it is a 'PATH' issue. Somewhere a file cannot be 'found' because the path to it is either not in the PATH variable or not part of the filename specification.

I hope that helps.

Mike
 
In addition to the PATH, t may also be having trouble finding any library files it needs. In cron you would have to actually run it from a script that sets LD_LIBRARY_PATH before running it. Use the [tt]ldd[/tt] command to find out what libraries it's needing.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top