LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 09-08-2016, 09:51 AM   #1
carlitos_30
LQ Newbie
 
Registered: Aug 2013
Posts: 9

Rep: Reputation: Disabled
File with @include directive


Hello!

I have a file with the @include directive. It's part of the Smokeping suite.

1) That directive is part of some Linux language? Is it Awk?

2) I want to include all the files with ".smoke" extension within a directory. Something like this:

@include /etc/smokeping/config.d/Hosts/*.smoke

It doesn't works.

When I put the complete filename it works:

@include /etc/smokeping/config.d/Hosts/hello.smoke
@include /etc/smokeping/config.d/Hosts/world.smoke

Thanks.
 
Old 09-08-2016, 11:21 AM   #2
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 2,305

Rep: Reputation: 816Reputation: 816Reputation: 816Reputation: 816Reputation: 816Reputation: 816Reputation: 816
Quote:
Originally Posted by carlitos_30 View Post
I have a file with the @include directive. It's part of the Smokeping suite.

1) That directive is part of some Linux language? Is it Awk?
No, how config files are parsed is up to the individual application. @include isn't a "standard" directive.

Quote:
Originally Posted by carlitos_30 View Post
2) I want to include all the files with ".smoke" extension within a directory. Something like this:

@include /etc/smokeping/config.d/Hosts/*.smoke

It doesn't works.

When I put the complete filename it works:

@include /etc/smokeping/config.d/Hosts/hello.smoke
@include /etc/smokeping/config.d/Hosts/world.smoke

Thanks.
See above answer.
 
1 members found this post helpful.
Old 09-08-2016, 02:13 PM   #3
carlitos_30
LQ Newbie
 
Registered: Aug 2013
Posts: 9

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by TenTenths View Post
No, how config files are parsed is up to the individual application. @include isn't a "standard" directive.

See above answer.
Thank you.
 
Old 09-08-2016, 02:20 PM   #4
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,654

Rep: Reputation: 1255Reputation: 1255Reputation: 1255Reputation: 1255Reputation: 1255Reputation: 1255Reputation: 1255Reputation: 1255Reputation: 1255
The closest I can find with that syntax is CSS. There is also some PHP, JSP, and SASS usage.
 
  


Reply

Tags
scripting


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
[SOLVED] Include file into bind acl directive !! shahzaibcb Linux - Networking 14 07-11-2014 08:43 AM
Apache: how to include last page served in a RewriteCond directive Didier Spaier Linux - Software 0 02-09-2014 01:45 PM
Beginning C programming- exceptions to whitespace irrelevant? include directive keithostertag Programming 3 02-01-2012 02:06 PM
[Maybe redundant] main.cpp:1:18: warning: extra tokens at end of #include directive pycoucou Programming 2 10-26-2004 10:57 AM
%include directive in Kickstart configuration file deepika Linux - Newbie 0 07-24-2003 06:32 PM


All times are GMT -5. The time now is 02:08 PM.

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