LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-14-2011, 11:01 AM   #1
markie83
LQ Newbie
 
Registered: Dec 2009
Posts: 27

Rep: Reputation: 0
hylafax & tiffsplit


good morning,
I am running a hylafax server (that part is running great) but I need a way to split all of the tif images into 1 page per file.....tiffsplit works if I manually type in the filename and ONLY if I manually type the filename.... *.tif or anything else with a $x.tif in a shell script ALL OF THEM FAIL...it will run and all it will do is take one page from the first multipage tif it finds and then quits.

any thoughts.....I want to either call tiffsplit from my FaxDispatch script or cron (via shellscript) is fine. I already all 5 words of the tiffsplit man page and I am out of ideas.

thanks!
 
Old 01-14-2011, 02:05 PM   #2
markie83
LQ Newbie
 
Registered: Dec 2009
Posts: 27

Original Poster
Rep: Reputation: 0
ok i figured out the cron side of it.....I made a shell script that loops while it attempts to tiffsplit and then sleeps for one second. (my filenames are `date +%Y.%m.%d.%H.%M.%S`.tif)

so I have the timing figured out but tiffsplit still just wont let me pass variables in the filename grrrr > I must be missing something in the syntax....

I have tried:

tiffsplit /home/mark/Public/TIF/"`date +%Y.%m.%d.%H.%M.%S`.tif"
tiffsplit /home/mark/Public/TIF/`date +%Y.%m.%d.%H.%M.%S`.tif `date +%Y.%m.%d.%H.%M.%S`
tiffsplit /home/mark/Public/TIF/"`date +%Y.%m.%d.%H.%M.%S`.tif" `date +%Y.%m.%d.%H.%M.%S`

but if I type

$tiffsplit /home/mark/Public/TIF/2011.01.14.13.53.21.tif 2011.01.14.13.53.21

it works......if I use a variable in any way shape or form it just does nothing
 
Old 01-14-2011, 05:37 PM   #3
markie83
LQ Newbie
 
Registered: Dec 2009
Posts: 27

Original Poster
Rep: Reputation: 0
SOLVED

ok guys....solved it. not the cleanest but it works.

I have my FaxDispatch file place a copy in a temporary dir and then have this line in my faxdispatch
/usr/sbin/tiffsplit /var/lib/samba/fax"`date +%Y.%m.%d.%H.%M.%S`.tif" /var/lib/samba/fax`date +%Y.%m.%d.%H.%M.%S`

you MUST place the FULL PATH to tiffsplit, source file, AND destination.


(optional)
then I have it delete the original now that they have been split....

I then have cron (as root) copy the files to a samba shared folder and then change their permissions to the faxuser

I hope this helps someone else

I will post my scripts later when I have more time
 
  


Reply



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
Hylafax white8 Linux - Software 1 07-18-2009 08:44 AM
HylaFax 4.3.0 trailer8713 Linux - Software 1 02-25-2008 10:46 AM
HylaFAX TL_CLD Slackware 5 06-05-2007 09:22 AM
Phục hồi dữ liệu bị mất???, cứ pollsite General 1 06-27-2005 12:39 PM
Can anyone help with Hylafax rlkiddjr Linux - Software 0 05-01-2002 10:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:37 PM.

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