I'm looking to create a script which will find all the files created in the last 24h in a directory starting with a few different letters and send them to the printer. This would be run through the cron each morning to print the last 24 hours files.
I have started with this to find all the files beginning with FILE in the /the/data directory from the last 24 hours.
However, how would I then print each of these files individually? Should I build some sort of array and run this in a loop -
Also, the file can have a few names, so I was just going to replicate this section of the script for each FILE* name, but if there is a neater way to return files from the find command I suppose that would be better. Maybe the find could be changed to something like,
Is there a shell command that will allow me to list index files in the /home directory for all users on a server that have been updated within the past 24 hours?
(e.g. index.htm .html .php in/home/user1/public_html /home/user2/public_html /home/user3/public_html etc ) (2 Replies)
Hi Guys,
My unix is SunOS. I like to find all the files which are created 1 day back.
i tried the following command
find . -type f -name '*.aud' -mtime +1
This gives me all the files created 48 hours back (2 days) but not one..
Can you let me know where i am going wrong.
Thanks,... (8 Replies)
Hi,
Can you guys tell me how do i find the most recently changed files, say an hour before, few hours before, a day before etc....
Thanks!!!! (3 Replies)
HI,
I have 2 questions.
1>
Is there any code to see files that created some day or some time before in a directory???
2>
how or where i will find the last exit status of a process??
thanks (6 Replies)
Hi,
I want to find the sum of all the files created 5 days ago and store it in a variable. (os is HP-UX)
can this be extracted from ls -l
Is there any other way of getting the sum of all the files created (4 Replies)
Hi Gurus,
I want to find the file created within one hour in solaris.
I have tried below command, but it is no lucky.
$find . -mtime -1/24, -name "abc*"
above command give me the file name which created two hours ago
find . -cmin -60, -name "abc*"
above command I got error as... (4 Replies)
Discussion started by: ken6503
4 Replies
10. Post Here to Contact Site Administrators and Moderators
In the past five minutes stomp has created two thread titled "Bug: empty lines get sometimes duplicated in new post". When I try to read either of those threads, Safari gives me a window containing the message shown in the attachment. (11 Replies)
Discussion started by: Don Cragun
11 Replies
LEARN ABOUT HPUX
tsm.lpadmin
tsm.lpadmin(1M)tsm.lpadmin(1M)NAME
tsm.lpadmin - add or remove a printer for use with tsm(1)SYNOPSIS
printer model
printer
DESCRIPTION
is used to add (or remove) a printer to the LP spooling system when the printer is connected to the system through a terminal running the
Terminal Session Manager (see tsm(1)). is a shell script that uses in the normal way but also creates a named pipe to which LP output is
directed (see lpadmin(1)). This named pipe is opened by TSM and data flowing from it is sent to the printer through the terminal.
Options
recognizes the following options:
Names a printer to be created with an associated pipe.
If is used, must also be specified.
Selects a model interface program for
printer. model is one of the model interface names supplied with the LP software (see the Models topic in the lpad-
min(1)) manual entry. If is used, must also be specified.
Removes printer from the LP system. No other options are allowed with
Restrictions
To use you must be user or
AUTHOR
was developed by HP.
FILES SEE ALSO lpadmin(1M), tsm(1).
tsm.lpadmin(1M)