First make sure that the script works.  Put it anywhere you like (but
/mnt/kd/bin makes sense) then make it executable with chmod... use "ls -l"
to make sure that the 'x' attribute is set.  Now from Astlinux command line
just run the script.  Now use the 'ps' command to list all running
processes. You should see the check_fax process in this list. If it is not,
then something is wrong with the script file.  (note, in checking things
right now to reply to you, I have found that the process ID placed into the
/tmp/check_fax.pid file is wrong for some reason.  I need to look into
that.)

Note that the script sleeps for 30 seconds, then checks for new faxes. So
emailing is not instant.

If this works, then the next step is to have the script run automatically
every time Astlinux boots. This is done in the 'edit' tab of the user
interface to add a line to the 'rc.local' file. If this file is not listed
on the edit tab then create it in /mnt/kd.  My /mnt/kd/rc.local file looks
like this...

#!/bin/bash
#
# /etc/rc.local - run once at boot time
# Put any local setup commands in here:
# inadyn --input_file /etc/inadyn2.conf
# mkdir /root/usb
/mnt/kd/bin/check_fax


You do not need .sh at the end of the file name.

David


On Sat, Oct 1, 2011 at 6:09 PM, Nedi <n...@gmx.ch> wrote:

> Hi David
>
> I folow your instuktion  and I get the Fax as tiff  file in /tmp  and the
> name of the file is with the email adresse but  the script don’t work for me
> to convert the tiff to pdf and send it to my email.
>
> where must I put the /mnt/kd/bin/check_fax ?  in the rc.conf through webgui
> interface?
>
> Should the check_fax file be  without  .sh at the end? I have tried both
>  with and without .sh and make it executable but the script won’t work.
>
>
> regards
>
> nedi
>
> ------------------------------------------------------------------------------
> All of the data generated in your IT infrastructure is seriously valuable.
> Why? It contains a definitive record of application performance, security
> threats, fraudulent activity, and more. Splunk takes this data and makes
> sense of it. IT sense. And common sense.
> http://p.sf.net/sfu/splunk-d2dcopy2
> _______________________________________________
> Astlinux-users mailing list
> Astlinux-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/astlinux-users
>
> Donations to support AstLinux are graciously accepted via PayPal to
> pay...@krisk.org.
>
------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2dcopy2
_______________________________________________
Astlinux-users mailing list
Astlinux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/astlinux-users

Donations to support AstLinux are graciously accepted via PayPal to 
pay...@krisk.org.

Reply via email to