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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Config file when tcl exec's top

Status
Not open for further replies.

TheIrishThug

Programmer
Apr 6, 2007
2
US
I have a config file for the linux command top. top looks for the config file to be in your home directory (~/.toprc) or /etc/toprc

When the file is in my home directory and I run top from the command line, the config file is read correctly. However when I execute top within a tcl script, top reverts to the defaults.

Any ideas why tcl's call of top is not being seen as an equivalent call from the command line? Is the installation folder of tcl being used as the home directory instead of the home directory of the user that runs the script?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top