Creating a bash file to run Hup Files
I have been trying to setup a bash file to run the hup files, but I can't get it working correctly. I am running Fedora 11 and Freeradius 2.1.6. I have the batch file as: #!/bin/bash radmin hup files What I get when having radius -X running is: ... new connection request on command socket. Listening on command file /usr/local/var/run/radiusd/radiusd.sock Ready to process requests. ... closing socket command file /usr/local/var/run/radiusd/radiusd.sock Ready to process requests. Also, if I can get this working, I am needing to set it up to run automatically every hour or so. -- Paul Blalock
Paul Blalock wrote:
I have been trying to setup a bash file to run the hup files, but I can't get it working correctly. I am running Fedora 11 and Freeradius 2.1.6.
I have the batch file as: #!/bin/bash radmin hup files
Er... that runs the "radmin", followed by the "hup" command. You want to pass the "hup files" text to the "radmin" command, which is decidedly different. What you want is: radmin -e 'hup files'
What I get when having radius -X running is:
... new connection request on command socket. Listening on command file /usr/local/var/run/radiusd/radiusd.sock Ready to process requests. ... closing socket command file /usr/local/var/run/radiusd/radiusd.sock Ready to process requests.
Also, if I can get this working, I am needing to set it up to run automatically every hour or so.
$ man cron Alan DeKok.
participants (2)
-
Alan DeKok -
Paul Blalock