01-19-2013
Thanks for the replies.
Quote:
Originally Posted by
RudiC
Wouldn't that be a rather arbitrary date, depending on when you run the command? Mayhap it's wiser to use creation or modification date for those files?
Yes you are probably correct, creation date would probably be the best.
@Don Cragun
Thanks for your advice, unfortunately most of it is completely over my head - hence why I post on here for help - I am not an IT professional
The idea is that a pdf will be produced by front-of-house staff from a word document that is populated from an MS Access application
using a virtual cups-pdf printer on my ubuntu server. The pdf will then need to have the characters added by the pdf printer removed, the creation date added and moved to a new directory. From the new location the pdf will be edited by a user (me) on a tablet pc (probably an iPad
) and then attached back to the MS Access record. I was planning to run the script that alters the pdf filename every 30secs or so as a cron job from a unprivileged user home directory. Hopefully this all makes sense?
I am open to better suggestions if you have any
Thanks
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
How do I write the command to find all files with any lower case letters in the filename? I have tried
find . -name *\(a-z\) and a lot of combinations like that, without success.
thanks
JP:confused: (4 Replies)
Discussion started by: jpprial
4 Replies
2. Shell Programming and Scripting
Hi,
I need to write a small script to search in some specific directories to check if any file is present with a unix command name...
Means if the directory contains any files like cat, vi, grep, find etc i need to list those files into a file.
Please help
Thanks,
D (6 Replies)
Discussion started by: deepakgang
6 Replies
3. Solaris
Hi,
I am having set of files whose names are stored in a file say "filelist.txt"
Now, I want to find all files contained in "filelist.txt" from my parent directory.
Is there any way to let find command understand "filelist.txt" just like we have option -f in awk.
I donot want to run a... (4 Replies)
Discussion started by: sanjay1979
4 Replies
4. Shell Programming and Scripting
Hi, guys, I'm not a high-end programmer, but I've been trying to write a script to remove all of the b.rtbn2.cn (and b.adserv.cn and any future variation) injected script tags on the server. (Still working on security fixes to prevent it in the future, just need to clean up now.)
My approach is... (1 Reply)
Discussion started by: zzlegs
1 Replies
5. Shell Programming and Scripting
Hi Gurus,
Do any kind souls encounter have the same script as mentioned here.
Find and compare filenames in different mount point and remove duplicates.
Thanks a million!!!
wanna13e (7 Replies)
Discussion started by: wanna13e
7 Replies
6. Shell Programming and Scripting
I have the following code:
find /usr/local/test5 -type f -mtime +30 -exec ls -l {} \; | awk '{print $5, $6, $7, $8, $9}'
I have this as output:
14 Aug 12 00:00 /usr/local/test5/file1
14 Aug 12 00:00 /usr/local/test5/lastname,
The bolded part is where I run into trouble. The actual... (4 Replies)
Discussion started by: streetfighter2
4 Replies
7. UNIX for Advanced & Expert Users
I have input file called file1 with characters that have \\ in it.
I cannot change input file, because it is generated earlier in script.
Now would like to replace string on line in file called bfile with output from file1
I have been using sed command.
$cat file1
pc//6sPxp==
$ cat scr1... (4 Replies)
Discussion started by: drtabc
4 Replies
8. UNIX for Dummies Questions & Answers
I have a group of files in different directories with characters such as " ? : in the file names. How do I find these files and remove these characters on mass?
Thanks (19 Replies)
Discussion started by: barrydocks
19 Replies
9. UNIX for Dummies Questions & Answers
Hi,
Can anyone let me know the command to know the list of filenames that have string 31 in their 4th and 5th positions inside the file:
grep -l "31" main*.txt
The above grep lists all the files which have 31 at any position but I want filenames having 31 at position 4 and position 5. (8 Replies)
Discussion started by: okkadu
8 Replies
10. Shell Programming and Scripting
Hi,
How to change the filenames with timestamp in sub folders
I have the following code to select the records.
find . -type f -name '*pqr*' -ctime 1 -print
The following is the example
app_root_dir="/`echo $ScriptDir | cut -d'/' -f2`"
$app_root_dir/../BadFiles directory
uvw.bad... (3 Replies)
Discussion started by: bobbygsk
3 Replies
LEARN ABOUT PHP
ps_add_pdflink
PS_ADD_PDFLINK(3) 1 PS_ADD_PDFLINK(3)
ps_add_pdflink - Adds link to a page in a second pdf document
SYNOPSIS
bool ps_add_pdflink (resource $psdoc, float $llx, float $lly, float $urx, float $ury, string $filename, int $page, string $dest)
DESCRIPTION
Places a hyperlink at the given position pointing to a second pdf document. Clicking on the link will branch to the document at the given
page. The first page in a document has number 1.
The hyperlink's source position is a rectangle with its lower left corner at ($llx, $lly) and its upper right corner at ($urx, $ury). The
rectangle has by default a thin blue border.
The note will not be visible if the document is printed or viewed but it will show up if the document is converted to pdf by either Acrobat
Distillertm or Ghostview.
PARAMETERS
o $psdoc
- Resource identifier of the postscript file as returned by ps_new(3).
o $llx
- The x-coordinate of the lower left corner.
o $lly
- The y-coordinate of the lower left corner.
o $urx
- The x-coordinate of the upper right corner.
o $ury
- The y-coordinate of the upper right corner.
o $filename
- The name of the pdf document to be opened when clicking on this link.
o $page
- The page number of the destination pdf document
o $dest
- The parameter $dest determines how the document is being viewed. It can be fitpage, fitwidth, fitheight, or fitbbox.
RETURN VALUES
Returns TRUE on success or FALSE on failure.
SEE ALSO
ps_add_launchlink(3), ps_add_locallink(3), ps_add_weblink(3).
PHP Documentation Group PS_ADD_PDFLINK(3)