this find command works when using manually on the command line
however when using it on a on bash shell script as
where the variable $vfile is the first parameter for the file to search and $pday is the second parameter days how old is the file
If I use the find command to find files older than n days I have to enter
find . -mtime +(n-1). I tried this on a Solaris 9 system and also Linux. Is this something that all Unix veterans know about (I'm new to Unix)? If so, maybe my man pages need to be updated (how to do this?). :confused: (4 Replies)
...what am i doing wrong??
I need to find all files older than 30 days and delete but I can't get it to pull details for ANY + times. The file below has a time stamp which is older than 1 day, however if I try and select it using any of the -time flags it just doesn't see it. (the same thing... (1 Reply)
Hi
I've made some test with perl script to learn more about mtime...
So, my question is :
Why the mtime from findfind /usr/local/sbin -ctime -1 -mtime -1 \( -name "*.log" -o -name "*.gz" \) -print are not the same as mtime from unix/linux in ls -ltr or in stat() function in perl : stat -... (2 Replies)
Hi guys, I am looking for a way of moving all files out of a directory with a time stamp greater then the one I specify. Can anyone suggest a way of doing so?
For example, move all files out of dir1 which were created after 17:00 into dir2.
Thanks :) (1 Reply)
Hi, so I was using mtime and its not behaving the way I would think its supposed too. I have two pdf files. One modified today and another 6 months ago. I upload them to the solaris server. Then I run the below find statements.
This finds my 2 files
find *.pdf -type f -name '*.pdf'
this finds... (2 Replies)
Hi Friends,
Please help me to sort out this problem, I am running this in centos o/s and whenever I run this script I am getting "find: missing argument to `-exec' " but when I run the same code in the command line I didn't find any problem. I am using perl script to run this ... (2 Replies)
Hi,
I'm trying to find all files that have a .ksh and .p extension and that are 7 days old by using the below find command but it doesn't seem to as expected. It gives me random results.. Can someone point out what may be wrong?
find . -name "*.ksh" -o -name "*.p" -mtime -7 (2 Replies)
I am trying to execute the cli.sh script in another shell script passing arguments and getting the below error.
Myscript.sh
#!/bin/sh
/home/runAJobCli/cli.sh runAJobCli -n $Taskname -t $Tasktype
I am passing the below 2 arguments and it giving error
./Myscript.sh T_SAMPLE_TEST MTT... (11 Replies)
Discussion started by: Info_Geek
11 Replies
LEARN ABOUT OSF1
log
Log(4) Kernel Interfaces Manual Log(4)NAME
Log, .Log - Contains the uucp program log files
SYNOPSIS
/usr/spool/uucp/.Log
DESCRIPTION
The /usr/spool/uucp/.Log directories contain uucp program log files. The uucp program normally places status information about each trans-
action in the appropriate log file each time you use the networking utilities facility. All transactions of the uucico and uuxqt daemons
are logged in files named for the remote system concerned. The files are stored in a subdirectory of the /usr/spool/uucp/.Log directory
named for the daemon involved. Thus, the log files are named with a form of the following: /usr/spool/uucp/.Log/DaemonName/SystemName
The uucp and uuto commands call the uucico daemon. The uucico daemon activities for a particular remote system are logged in the System-
Name file in the /usr/spool/uucp/.Log/uucico directory on the local system.
The uux and uusend commands call the uuxqt daemon. The uuxqt daemon activities for a particular remote system are logged in the SystemName
file in the /usr/spool/uucp/.Log/uuxqt directory on the local system.
When more than one uucp process is running, however, the system cannot access the standard log file, so it places the status information in
a file with a .Log prefix that covers just the single transaction.
The uucp program can automatically append the temporary log files to a primary log file. This is called compacting the log files, and is
handled by the uudemon.cleanu command, a shell procedure, which combines the log files of the activities of the uucico and uuxqt daemons on
a system and stores them in the /usr/spool/uucp/.Old directory.
The default is for the uudemon.cleanu command to save log files that are 2 days old. This default can be changed by modifying the appro-
priate line in the shell script. If storage space is a problem on a particular system, reduce the number of days that the files are kept
in the individual log files.
The uulog command can be used to view the uucp program log files.
RELATED INFORMATION
Daemons: cron, uucico(8), uusched(8)
Commands: uucp(1), uudemon.cleanu(4), uulog(1), uusend(1), uuto(1), uux(1) delim off
Log(4)