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!

Search results for query: *

  1. Benjamin

    Running a function from file on the UNIX command line

    Help!<br> <br> I've been working on this for the past few days and couldn't get this to work. I wrote a function InRange which returns a 1 if a time is within the range of another time. It works when I test it out with a body inside the inrange.awk script:<br> <br> cat b ¦ awk -F&quot; &quot...
  2. Benjamin

    How to get xterm -exec to execute two commands

    This is probably the last message for this thread. I just found out a mistake I did while working on the scripts above. It turned out that two solutions works if I only I had change the permission of the script to executable... I've been bonking myself on the head ever since I found that out...
  3. Benjamin

    Xterm Standard Out Redirection to another Xterm

    Hi Again :)<br> <br> May I ask if anyone know how to redirect output to any xterm from a window (another xterm)? Is there a command or redirection symbol specific for this? The man page for xterm does not help much with one paragraph of description.<br> <br> man xterm<br> ...<br> -Sccn<br> <br>...
  4. Benjamin

    How to get xterm -exec to execute two commands

    Thanks to everyone for pitching in to help. The Unix OS we use is IRIX 6.4. And yes, I did try:<br> <br> xterm -exec tail -f logfile &gt; logfile.new &<br> tail -f logfile.new ¦ awk {...} &<br> <br> The result is that xterm pops up in a new window and outputs the log onto the xterm but the...
  5. Benjamin

    How to get xterm -exec to execute two commands

    Hi Mrregan again,<br> <br> The xterm only execute a command that tails a log file. That can easily be done with the xterm -exec command. The problem I run into is that I want to print only selected portions of the log file. I want the tail command to passed its data to an awk script to parse...
  6. Benjamin

    How to get xterm -exec to execute two commands

    Hi Mrregan,<br> <br> I don't really understand your suggestion. If I run a background job (i.e. tail) before the xterm even in the background, wouldn't the results of the tail command be sent to the terminal that calls it instead of the new xterm? Maybe I'm missing something, can you fill in...
  7. Benjamin

    virtual char *functionName (arguments...) const;

    A friend of mine found a book with the description of the const above. The<br> description goes:<br> <br> Found in book: C++ How to Program (2nd Edition) by Deitel & Deitel<br> <br> C++ compilers disallow any member function calls for const objects unless the member functions themselves are...
  8. Benjamin

    virtual char *functionName (arguments...) const;

    Hi,<br> <br> I'm a bit rusty at remembering what I study in college. Can anyone tell me<br> what is the const; at the end of the function actually does?<br> <br> class someName {<br> <br> public:<br> ...<br> protected:<br> virtual char *functionName (args...) const; &lt;--- what does...
  9. Benjamin

    How to get xterm -exec to execute two commands

    Thanks Ged & Andy,<br> <br> I try both the suggested methods above but it does not seem to work:<br> <br> The following hangs the xterm:<br> xterm -exec `tail file.log ¦ awk {parses data and prints out}` &<br> <br> The following returns an error message:<br> xterm -exec &quot;tail file.log ¦ awk...
  10. Benjamin

    How to get xterm -exec to execute two commands

    Hi,<br> <br> I'm trying to write a script that would open an xterm window and use the<br> -exec to execute a tail command which passes the result to an awk command.<br> <br> xterm -exec tail file.log ¦ awk {parses data and prints out} &<br> <br> The problem is that the command awk is not...

Part and Inventory Search

Back
Top