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

Activating programs using the "exec" command

Status
Not open for further replies.

graemephillips

Programmer
Mar 8, 2004
8
GB
Does anyone know about the format that one needs to use for the exec command when using it to activate files using a particular program, as if double clicking on the icon?

Currently, I have an example in front of me in John Ousterhout's textbook that goes as follows:-

exec wc /usr/include/stdio.h

I have been told that I can open a file as if double clicking on it this way, although I was also told that wc is a UNIX command.

Assuming this is true, does anyone know what I should replace wc with for each major Windows program?

Does anyone know of a good website, where I can find out how to use the exec command? Does anyone know of any websites with lots of examples of the exec command being used in such a way?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top