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" "...
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...
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>...
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 > 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...
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...
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...
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...
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; <--- what does...
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 "tail file.log ¦ awk...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.