Creating a bash file to run Hup Files

Alan DeKok aland at deployingradius.com
Mon Aug 10 16:54:24 CEST 2009


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.



More information about the Freeradius-Users mailing list