LinuxQuestions.org
Review your favorite Linux distribution.
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 03-18-2006, 09:48 PM   #1
Kjell Persson
LQ Newbie
 
Registered: Feb 2006
Posts: 7

Rep: Reputation: 0
significance of $$ in a logcheck script?


I am trying to figure out what the significance of $$ is in a logcheck script? I am not sure what the purpose of using this $$ is...what does it do...what does it represent? Please help....

Desperate in KY
 
Old 03-18-2006, 10:18 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,125

Rep: Reputation: 164Reputation: 164
I'm assuming that's a bash script. If so, $$ is the process ID of the current shell.
 
Old 03-18-2006, 10:50 PM   #3
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,125

Rep: Reputation: 164Reputation: 164
If you're going to be doing some shell scripting, I'd recommend a look at the Advanced Bash-Scripting Guide, there's some useful stuff there. If you're going to be doing a lot of bash shell scripting there's also "Learning the Bash Shell". It's one of the O'Reilly publisher's books and is up to the 3rd edition now (at least, that's what my copy is) - very handy.
 
  


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
logcheck does not read logfiles! cyberpunx Linux - Software 16 04-06-2015 03:18 AM
logcheck.ignore JSLayton Linux - Software 1 02-02-2006 04:30 PM
[logcheck] ignore.d and logcheck.ignore cyberpunx Linux - Software 0 09-18-2005 06:07 PM
Logcheck regex to filter out bogus errors Donboy Linux - Security 1 03-14-2005 12:09 AM
INFO: configuring logcheck markus1982 Linux - Software 1 05-26-2003 12:54 PM


All times are GMT -5. The time now is 05:06 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