LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-17-2012, 01:46 AM   #1
mbalaji
LQ Newbie
 
Registered: Oct 2012
Posts: 2
Blog Entries: 1

Rep: Reputation: Disabled
Wink 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
 
Old 10-17-2012, 01:53 AM   #2
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978
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.
 
Old 10-17-2012, 02:13 AM   #3
mbalaji
LQ Newbie
 
Registered: Oct 2012
Posts: 2
Blog Entries: 1

Original Poster
Rep: Reputation: Disabled
Smile 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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Few queries regarding awk... pinga123 Linux - Newbie 1 12-23-2011 02:41 AM
Doubt in awk scripting.... stalin2020 Programming 1 06-02-2008 07:20 AM
AWK Scripting horikka Linux - Newbie 5 10-26-2006 07:10 PM
csh scripting and awk? Mr. Asdf Linux - General 3 07-13-2006 08:26 AM
awk scripting question di11rod Linux - Software 11 04-01-2005 02:47 PM


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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration