I think ya get what I'm asking, any help would be great, thanks!
Yes, I think I get what you are asking but rather than just answering I have to suggest that you rethink why you are asking.
There is almost never a good reason to allow arbitrary commands to be run via a CGI application. At best it is error prone and at worst it is a serious security hole. It is very unlikely that you really need to turn your browser into a shell prompt.
But if you insist on shooting yourself in the foot, use backticks.
Update: Given that the title of your node suggests that you might want to write a CGI interface to the unix talk(1) command, I thought I should point out that it won't be easy. You'd be better off writing your own talk client and even then it would be pretty horrid. By design, the web is stateless. Talk, on the other hand, is not. You'd have to keep a process running server for each talk session. One way or the other, you would end up with a pretty nasty design.
-sauoq
"My two cents aren't worth a dime.";
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
|
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.
|
|