Dear All Does anyone know what to do with this ? I've looked into running my dialup ISDN connection from the auto option and I find that the box wants to connect all the time. So, I can't really use auto connect in ISDN. A few people I've spoken to say that I should be able to run an ISDN connection as a cron job. In /etc/crontab I've put ...... 00 6-24/1 * * * root /usr/sbin/isdnctrl dial ippp0 System doesn't dialup or connect with this in /etc/crontab. Yes, I did remember to do `rccron restart' after chopping crontab around. Also tried writing to the ISDN list several times. Don't get an answer from there at all. Just spam and more spam. Anyone point me in the right direction with this ? I've done `file /usr/sbin/isdnctrl' and this is what came back..... setuid ELF 32-bit LSB executable, Intel 80386, version 1, dynamically linked (uses shared libs), not stripped Thanks -- Richard
On Thu, 25 Jan 2001 12:44:42 +0000, Richard wrote: | 00 6-24/1 * * * root /usr/sbin/isdnctrl dial ippp0 ^^^^ What is this thingy doing here? The 6th field should be the command. -- ---------------------------------------------------- Koos Pol T: +31 20 3116122 Systems Administrator F: +31 20 3116200 Compuware Europe B.V. E: koos_pol@nl.compuware.com Amsterdam PGP public key available
On Fri, Jan 26, 2001 at 08:07:43AM +0100, koos_pol@nl.compuware.com wrote:
On Thu, 25 Jan 2001 12:44:42 +0000, Richard wrote:
| 00 6-24/1 * * * root /usr/sbin/isdnctrl dial ippp0 ^^^^ What is this thingy doing here? The 6th field should be the command.
Not in the SuSE /etc/crontab - the 6th field is the username of the intended owner of the process -- David Smith Tel: +44 (0)1454 462380 (direct) STMicroelectronics Fax: +44 (0)1454 617910 1000 Aztec West TINA (ST only): (065) 2380 Almondsbury Home: 01454 616963 BRISTOL Mobile: 07932 642724 BS32 4SQ Work Email: Dave.Smith@st.com Home Email: David.Smith@ds-electronics.co.uk
On Fri, 26 Jan 2001 11:24:28 +0000, Dave Smith said: | On Fri, Jan 26, 2001 at 08:07:43AM +0100, koos_pol@nl.compuware.com wrote: | > | > On Thu, 25 Jan 2001 12:44:42 +0000, Richard wrote: | > | > | 00 6-24/1 * * * root /usr/sbin/isdnctrl dial ippp0 | > ^^^^ | > What is this thingy doing here? The 6th field should be the command. | | Not in the SuSE /etc/crontab - the 6th field is the username of the intended | owner of the process Not in my version (SuSE 6.3).
From man 5 crontab: cron(8) examines cron entries once every minute.
The time and date fields are: field allowed values ----- -------------- minute 0-59 hour 0-23 day of month 0-31 month 0-12 (or names, see below) day of week 0-7 (0 or 7 is Sun, or use names) If I try to run "* * * * * ls" everything runs fine but "* * * * * koos ls" gives "koos: command not found". But however the local cron behaves, a plain "isdnctrl..." should leave it's traces in the mail if it is run by cron. I am stumped. -- ---------------------------------------------------- Koos Pol T: +31 20 3116122 Systems Administrator F: +31 20 3116200 Compuware Europe B.V. E: koos_pol@nl.compuware.com Amsterdam PGP public key available
Read the crontab(5) man page carefully, it's kind of hiding there. It says: Each line has five time and date fields, followed by a user name if this is the system crontab file, followed by a command. So, system crontab requires a username. A personal crontab does not. I hope this helps. Avi --On Friday, January 26, 2001 01:58:10 PM +0000 Koos Pol <koos_pol@nl.compuware.com> wrote:
On Fri, 26 Jan 2001 11:24:28 +0000, Dave Smith said:
| On Fri, Jan 26, 2001 at 08:07:43AM +0100, koos_pol@nl.compuware.com wrote: | > | > On Thu, 25 Jan 2001 12:44:42 +0000, Richard wrote: | > | > | 00 6-24/1 * * * root /usr/sbin/isdnctrl dial ippp0 | > ^^^^ | > What is this thingy doing here? The 6th field should be the command. | | Not in the SuSE /etc/crontab - the 6th field is the username of the intended | owner of the process
Not in my version (SuSE 6.3). From man 5 crontab: cron(8) examines cron entries once every minute.
The time and date fields are:
field allowed values ----- -------------- minute 0-59 hour 0-23 day of month 0-31 month 0-12 (or names, see below) day of week 0-7 (0 or 7 is Sun, or use names)
If I try to run "* * * * * ls" everything runs fine but "* * * * * koos ls" gives "koos: command not found". But however the local cron behaves, a plain "isdnctrl..." should leave it's traces in the mail if it is run by cron. I am stumped.
-- ---------------------------------------------------- Koos Pol T: +31 20 3116122 Systems Administrator F: +31 20 3116200 Compuware Europe B.V. E: koos_pol@nl.compuware.com Amsterdam PGP public key available
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/support/faq
-- Avi Schwartz Get a Life, avi@CFFtechnologies.com Get Linux!
Koos Pol wrote:
On Fri, 26 Jan 2001 11:24:28 +0000, Dave Smith said:
| On Fri, Jan 26, 2001 at 08:07:43AM +0100, koos_pol@nl.compuware.com wrote: | > | > On Thu, 25 Jan 2001 12:44:42 +0000, Richard wrote: | > | > | 00 6-24/1 * * * root /usr/sbin/isdnctrl dial ippp0 | > ^^^^ | > What is this thingy doing here? The 6th field should be the command. | | Not in the SuSE /etc/crontab - the 6th field is the username of the intended | owner of the process
Not in my version (SuSE 6.3).
From man 5 crontab: cron(8) examines cron entries once every minute.
The time and date fields are:
I think you're both right. there is a *systemwide* crontab /etc/crontab and a user specific (the one I do not use and know about ;-)) Richard uses the systemwide. I think the user entry is to run system processes with other system users but root from the system crontab. Doesn't make sense to run "normal" user jobs like this, since root would be bugged all day to add / change entries. But it's the same here. Cannot find the man pages that explains more. ;-( Juergen -- =========================================== __ _ Juergen Braukmann juergen.braukmann@gmx.de| -o)/ / (_)__ __ ____ __ Tel: 0201-743648 dk4jb@db0qs.#nrw.deu.eu | /\\ /__/ / _ \/ // /\ \/ / ===========================================_\_v __/_/_//_/\_,_/ /_/\_\
Juergen and Koos
| > | 00 6-24/1 * * * root /usr/sbin/isdnctrl dial ippp0
Further investigation reveals that the 6-24/1 part is incorrect. Changing it to 6-23/1 will allow crontab to tell isdnctrl to dialup my ISP. It now does that and I've changed to Pine to send and receive all mail. Very nice :)) Thank you for your help. Richard
Koos
| > | 00 6-24/1 * * * root /usr/sbin/isdnctrl dial ippp0 | > ^^^^ | > What is this thingy doing here? The 6th field should be the command. |
If I remove the word root and try without that I find that it still doesn't work.
I am stumped.
Yes :)) Richard
Richard wrote:
Dear All
Does anyone know what to do with this ?
I've looked into running my dialup ISDN connection from the auto option and I find that the box wants to connect all the time. So, I can't really use auto connect in ISDN.
Hi Richard, try to find out *why* it is dialing. The command is "isdnctrl verbose 3" to enable verbose ISDN logging. The usual reason are DNS requests. (btw.: /etc/rc.config.d/i4l.rcconfig just in the first lines) root@marvin:/etc > tail /var/log/messages -n 500|grep OPEN Jan 25 22:07:00 marvin kernel: OPEN: 192.168.42.97 -> 195.8.224.4 ICMP Jan 25 23:04:30 marvin kernel: OPEN: 192.168.42.97 -> 195.8.224.2 UDP, port: 1092 -> 53 Jan 25 23:06:04 marvin kernel: OPEN: 192.168.42.97 -> 137.138.131.247 TCP, port: 4256 -> 80 Jan 26 06:07:00 marvin kernel: OPEN: 192.168.42.97 -> 195.8.224.4 ICMP to show a few. The second is a DNS request, others are pinging my isp's mailserver (to trigger a connection) and a html request. Make sure *all* localy used and known IP addresses are in /etc/hosts and if there are local network names put them into /etc/networks. Running Samba with winXX machines? use the interfaces=192.168.42.1/255.255.255.0 Parameter in SMB.conf to keep the traffic to the lan only. open Sockets (netstat -an) resulting fron "broken" connections i.e. you read www.suse.com, DOD dials fetches the page. you read, go to spend some pennys(tm) and return after three minutes to your PC. DoD has cut the connection, but the socket remains. When you change the page, quit netscape cause youre fed up this socket becomes live again and dials out with the IP=X. Unfortunately your next Dyn IP is Y. For the next 20-30 mins the old socket will always try to "say goodby to www.suse.com" until it dies of lonelyness. When I was realy fet up by this, I used some firewall rules to cure it. with the ip-down script, I block all my ISP's possible dyn IP's to the outside and leave the sockets crying to a brick wall. In IP-up I withdraw that rule so that I can work with my newly aquired IP. The dial up process is triggered by my "dummy" IP 192.168.42.97 that is assigned to that device.
A few people I've spoken to say that I should be able to run an ISDN connection as a cron job. In /etc/crontab I've put ......
00 6-24/1 * * * root /usr/sbin/isdnctrl dial ippp0
System doesn't dialup or connect with this in /etc/crontab. Yes, I did remember to do `rccron restart' after chopping crontab around.
??? that would trigger a connection every hour and depending on (safety??) timeout settings the connection closes after a minute or so. ippp0 is the correct deamon? Never used hand dialed ISDN. But I think there was something more to do... yep. been there looked in there: /etc/rc.config.d/i4l.rcconfig is your friend. Dig through, search "manual" and you're there. At least amongst the comments.)
Also tried writing to the ISDN list several times. Don't get an answer from there at all. Just spam and more spam. Anyone point me
sorry. Must have overseen your request or misunderstood the question.
in the right direction with this ? I've done `file /usr/sbin/isdnctrl' and this is what came back.....
setuid ELF 32-bit LSB executable, Intel 80386, version 1, dynamically linked (uses shared libs), not stripped
Thanks
Cheers Juergen -- =========================================== __ _ Juergen Braukmann juergen.braukmann@gmx.de| -o)/ / (_)__ __ ____ __ Tel: 0201-743648 dk4jb@db0qs.#nrw.deu.eu | /\\ /__/ / _ \/ // /\ \/ / ===========================================_\_v __/_/_//_/\_,_/ /_/\_\
participants (5)
-
Avi Schwartz
-
Dave Smith
-
juergen.braukmann@ruhr-west.de
-
Koos Pol
-
Richard