Visit the LQ Articles and Editorials section
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 01-22-2005, 03:28 AM   #1
LQ Newbie
Registered: Nov 2004
Location: Poland
Distribution: Slackware - best and only ;]
Posts: 29

Rep: Reputation: 15
Works great, but not from /etc/rc.d/rc.local :(
If you have compilation problem, add to meddler.cpp this line:
#include <unistd.h>

It's my first program in C++ so don't laugh ;P What he do is written in README file so I won't do mess on this great forum, please read
My problem is that, when runned in daemon mode (meddler -d) Meddler works perfectly. Problem is when I want to add to /etc/rc.d/rc.local (I've Slack 10.0) one line to start my program automatically:

# Meddler
/usr/local/bin/meddler -d

When I restart computer, Meddler is runned, file's are created, but arping isn't launched so packets aren't sending (line 182 in meddler.cpp). Meddler creates file, runs it and runs arping. I thought that maybe it's too complicated (I said, don't laugh...) and I rewrote the code. Meddler in new version do sth like this:


where variable_txt has value e.x. "arping -c 1 -r -w 2000". And the same situation again - runned manually works, runned form rc.local don't.
I tried tricks with paths (e.x. '/usr/local/bin/meddler' in place of 'meddler'), I even added this to rc.S, nothing works. I though that maybe Slackware doesn't permit to run program from another program or what...

Please help

PS Sorry for my english.
Old 01-22-2005, 07:31 AM   #2
Senior Member
Registered: Mar 2004
Distribution: Slackware
Posts: 4,617

Rep: Reputation: 137Reputation: 137
What is the path to your variable_txt file ?
Old 01-22-2005, 04:14 PM   #3
LQ Newbie
Registered: Nov 2004
Location: Poland
Distribution: Slackware - best and only ;]
Posts: 29

Original Poster
Rep: Reputation: 15
variable_txt is a variable that looks like this:

arping -c 1 -r -w 2000

Last part changes from to (a whole network is scanned). I tried sth like that:

/usr/local/bin/arping -c 1 -r -w 2000

but it doesn't take any effect


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
Mplayer 1.0pre6 works great. Try it. teckk Linux - Software 1 12-26-2004 01:22 PM
RHEL 4 beta works great... halo14 Red Hat 2 11-01-2004 07:46 PM
Netscape 7 works great -Just one question? ikw38 Linux - Newbie 4 12-17-2002 07:25 AM
FA311 works great DarkBeethoven Linux - Networking 1 01-18-2002 08:41 PM
rh6.2 router works great but!! gargoyle Linux - Networking 2 09-28-2001 12:53 AM

All times are GMT -5. The time now is 11:55 PM.

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