LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   queries abut awk scripting (https://www.linuxquestions.org/questions/linux-newbie-8/queries-abut-awk-scripting-4175432628/)

mbalaji 10-17-2012 01:46 AM

queries abut awk scripting
 
Dear friends,
I want to know how we can execute a xgraph file through awk program.please tell me that program.


Thanks & Regards
BALAJI.M

colucix 10-17-2012 01:53 AM

Generally speaking, if you want to execute an external program from awk you can try the system() function or - in alternative - print the command line and pipe it down to the shell, e.g.
Code:

status = system("xgraph arguments")
or
Code:

print "xgraph arguments" | "/bin/bash"
See the GNU awk manual for details, here.

mbalaji 10-17-2012 02:13 AM

Doubt in AWK
 
Thank you very much Mr.colucix
I cant understand this, iwant to is it possible to execute a graph file(drop.xg) from awk program.
If possible means please give me that code.

Thanks & Regards
BALAJI.M


All times are GMT -5. The time now is 03:46 AM.