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!

Linux Commands And Tcl?

Status
Not open for further replies.

fireflyeen

Programmer
Feb 29, 2004
1
US
Hello i have been searching for hours try to find out how i could do what would seam to be simple task with tcl.
What i am trying to do is find out what the command is to say install an rpm file?
And then use wish to make a box with a button and when you push the button it careys out the tcl command to install an rpm.
e.g ------
|Button|
------
|
I press the button.
|
And the command.
|
rpm -ivh example.rpm

Is Exacuted
If you could tell me how to do this with say visual tcl
That would be great.


 
What i am trying to do is find out what the command is to say install an rpm file?"

You will still be using the linux command, but you will be executing that command from inside the tcl shell. Just have the following as your command option for your button.

-command { [exec rpm -ivh $path/yadda.rpm] }


Is this enough or do you need the actual code for creating the button and the gui?

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top