Sponsored Content
Top Forums Shell Programming and Scripting Getting file Details with find -mmin Post 302850251 by Subbeh on Wednesday 4th of September 2013 10:58:05 AM
Old 09-04-2013
remove -exec echo {} \; from your code
This User Gave Thanks to Subbeh For This Post:
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

no [find -mmin -1]

I wanna show all files like...one minute old, one hour old, five hours old and so on... in my OS (HP-UX) there's only the command .. find -name "..." -mtime -n but this is only for days, there isn't something like -mmin -n ...just don't know what to do. also the newer than option isn't... (3 Replies)
Discussion started by: svennie
3 Replies

2. HP-UX

find command using -mmin param

Hi Everyone, I would like to know how to find a file which was created in the period of 20+ hours, in most common unix OS, the parameter -mmin is not supported (i.e, HP-UX, Solaris, LInux, AIX) Could you help on this ?? (3 Replies)
Discussion started by: jmbeltran
3 Replies

3. Solaris

Any alternative of find . -mmin 20

hi find command is not working with -mmin in Solaris Os. Do we hav any alternative to find the modified file in any specified time span ( suppose in last 1- 2 hours) Thanks (2 Replies)
Discussion started by: Prat007
2 Replies

4. Shell Programming and Scripting

unix find command without mmin option

I need to check if a file has been modified within the last x hours. My find command does not have the mmin option -- only the mtime option which is in 24 hour perriods (1 Reply)
Discussion started by: Bill Ma
1 Replies

5. Shell Programming and Scripting

Help with find –mmin in a .ksh script

I need to compare the time a file was last modified against current time and conditionally proceed. At the command prompt I can do: find MYFILE -mmin +1140 and it lists the file. But I need to test, and if true do something I’ve tried things like: if ; then if ; then etc. ... (2 Replies)
Discussion started by: tlavoie
2 Replies

6. Shell Programming and Scripting

-$arg not working for find mmin

Hi, I want to parameterise the argument for 'mmin' to find out files created/edited 'n' minutes ago. For this i have written something as simple as the following: n=10 m=-1 c=expr $n \* $m #value comes to -10 when echoed find -mmin -10 #works find -mmin $c #doesnt work ... (5 Replies)
Discussion started by: SheetalN
5 Replies

7. Shell Programming and Scripting

Find mmin, mtime, cmin not working

Dear All, We are having the script which is creating the folder on another server if it is not present using ssh. Using scp it copies copy all pdf files from local folder to server folder. After all copy is done, Just to verify i was using the below find command find... (3 Replies)
Discussion started by: yadavricky
3 Replies

8. Shell Programming and Scripting

How to find a file with a specific pattern for current sysdate & upon find email the details?

I need assistance with following requirement, I am new to Unix. I want to do the following task but stuck with file creation date(sysdate) Following is the requirement I need to create a script that will read the abc/xyz/klm folder and look for *.err files for that day’s date and then send an... (4 Replies)
Discussion started by: PreetArul
4 Replies

9. UNIX for Dummies Questions & Answers

Find command mmin

Hi, Please tell me what the below command wil do, according to my understanding it finds files in the current and sub directories whose modification time is 5 hrs and it dont zip the already zipped files who's size is more than 4K. Am I Correct? find . -type f -mmin +300 ! -name... (1 Reply)
Discussion started by: nag_sathi
1 Replies
IMAP_CREATEMAILBOX(3)							 1						     IMAP_CREATEMAILBOX(3)

imap_createmailbox - Create a new mailbox

SYNOPSIS
bool imap_createmailbox (resource $imap_stream, string $mailbox) DESCRIPTION
Creates a new mailbox specified by $mailbox. PARAMETERS
o $ imap_stream -An IMAP stream returned by imap_open(3). o $mailbox - The mailbox name, see imap_open(3) for more information. Names containing international characters should be encoded by imap_utf7_encode(3) RETURN VALUES
Returns TRUE on success or FALSE on failure. EXAMPLES
Example #1 imap_createmailbox(3) example <?php $mbox = imap_open("{imap.example.org}", "username", "password", OP_HALFOPEN) or die("can't connect: " . imap_last_error()); $name1 = "phpnewbox"; $name2 = imap_utf7_encode("phpnewbox"); // phpnewb&w7Y-x $newname = $name1; echo "Newname will be '$name1'<br /> "; // we will now create a new mailbox "phptestbox" in your inbox folder, // check its status after creation and finally remove it to restore // your inbox to its initial state if (@imap_createmailbox($mbox, imap_utf7_encode("{imap.example.org}INBOX.$newname"))) { $status = @imap_status($mbox, "{imap.example.org}INBOX.$newname", SA_ALL); if ($status) { echo "your new mailbox '$name1' has the following status:<br /> "; echo "Messages: " . $status->messages . "<br /> "; echo "Recent: " . $status->recent . "<br /> "; echo "Unseen: " . $status->unseen . "<br /> "; echo "UIDnext: " . $status->uidnext . "<br /> "; echo "UIDvalidity:" . $status->uidvalidity . "<br /> "; if (imap_renamemailbox($mbox, "{imap.example.org}INBOX.$newname", "{imap.example.org}INBOX.$name2")) { echo "renamed new mailbox from '$name1' to '$name2'<br /> "; $newname = $name2; } else { echo "imap_renamemailbox on new mailbox failed: " . imap_last_error() . "<br /> "; } } else { echo "imap_status on new mailbox failed: " . imap_last_error() . "<br /> "; } if (@imap_deletemailbox($mbox, "{imap.example.org}INBOX.$newname")) { echo "new mailbox removed to restore initial state<br /> "; } else { echo "imap_deletemailbox on new mailbox failed: " . implode("<br /> ", imap_errors()) . "<br /> "; } } else { echo "could not create new mailbox: " . implode("<br /> ", imap_errors()) . "<br /> "; } imap_close($mbox); ?> SEE ALSO
imap_renamemailbox(3), imap_deletemailbox(3). PHP Documentation Group IMAP_CREATEMAILBOX(3)
All times are GMT -4. The time now is 10:22 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy