Sponsored Content
Full Discussion: UNIX requirement
Top Forums UNIX for Beginners Questions & Answers UNIX requirement Post 302988298 by RudiC on Friday 23rd of December 2016 04:47:50 AM
Old 12-23-2016
Not in all *nix file systems the creation time is retained, they have access, modification, and change time unless additional measures are taken. So, YMMV.
man ftp:
Quote:
modtime file-name
Show the last modification time of the file on the remote machine.
 

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

system requirement for unix

I want to try running the free down load from sun, their solaris 8. I have an intel pentium 3, 550 mhz, 8 GB drive, with 128 ram. I this anough to run a unix os like solaris 8. Also is their a browser that I could use with solaris8 so as to connect to the internet. Does ie have a version for unix.... (3 Replies)
Discussion started by: gparsons70
3 Replies

2. AIX

SPOT requirement

Hey May be a dumb question Can I use a SPOT which is at 5.3 TL6 to boot an LPAR (with 5.3 TL8) in to maintenance mode? Will it work ? Is it mandatory that SPOT should be of same or higher version in such case? Bala (1 Reply)
Discussion started by: balaji_prk
1 Replies

3. Shell Programming and Scripting

Requirement

I am trying to script and came up with a conclusion that I need a do while loop in my statement. I am stuck with the do while syntax. I need to use it alongwith the if then else statement. Can I use it is a big question? I actually need to get all the files that are there from within run_dt to... (1 Reply)
Discussion started by: aronmelon
1 Replies

4. Shell Programming and Scripting

URGENT REQUIREMENT

1.Write an automated shell program(s) that can create, monitor the log files and report the issues for matching pattern. (i) Conditions for creating log files. Log file is created with date (example 2010_03_27.log). If the log file size is 10 Mb for a particular day then automatically the log... (3 Replies)
Discussion started by: praveen12
3 Replies

5. Shell Programming and Scripting

Looping requirement

Hi all, I have little working knowledge in unix shell scripting. I have a requirement where i need to pull out some data in between the strings in the file. Input: TEST a a c f d TEST f e g g TEST Output: (7 Replies)
Discussion started by: satyasrin82
7 Replies

6. Shell Programming and Scripting

UNIX - requirement

Hi All, I have a source file with data Name ~ Groups Muni~abc,was,USA_ax,123 Chaitanya~USA_12,was Balaji~123,xyz,was Ramu~123,xyz From the second column i want to extract only the groups that matches the pattern 'USA_%' or if the group = 'was', and ignore any other columns. ... (8 Replies)
Discussion started by: morbid_angel
8 Replies

7. Shell Programming and Scripting

Requirement of Spliting a text file in UNIX Programing

Hi, There is a requirement, needs to split the text file based on RC code present in text file. For this, needs to write a unix shell programing script for the above requirement. For example in text file, if there are distinct RC codes, then we needs to split into multiple text files. In... (1 Reply)
Discussion started by: Chandra2678
1 Replies

8. UNIX for Dummies Questions & Answers

Script requirement

Please help in creating script for below requirement. I will be running 1 command and will get below entries in a text file say file44.txt ******************************* DFDL1005 06:30 00:05 ABFL2003 10/22 01:10 CFTL1256 10/24 00:10 10/25 09:20 PM ******************************** .... (3 Replies)
Discussion started by: Vinay_3308
3 Replies
utime(2)							System Calls Manual							  utime(2)

NAME
utime() - set file access and modification times SYNOPSIS
DESCRIPTION
The system call sets the access and modification times of the file to which the path argument refers. If times is a NULL pointer, the access and modification times of the file are set to the current time. A process must be the owner of the file or have write permission on the file to use in this manner. The following times in the structure defined in are measured in seconds since 00:00:00 UTC (Coordinated Universal Time), January 1, 1970. time_t actime; /* access time */ time_t modtime; /* modification time */ Security Restrictions If times is not a NULL pointer, times is interpreted as a pointer to a utimbuf structure, and the access and modification times are set to the values contained in the designated structure. Only the owner of the file or a user with the privilege can use this way. See privileges(5) for more information about privileged access on systems that support fine-grained privileges. RETURN VALUE
returns the following values: Successful completion. Failure. is set to indicate the error. ERRORS
If fails, is set to one of the following values. Search permission is denied by a component of the path prefix. The effective user ID is not a user with the privilege, and not the owner of the file, times is a NULL pointer, and write access is denied. times is not a NULL pointer, and it points outside the process's allocated address space. The reliable detection of this error is implementation-dependent. path points outside the process's allocated address space. The reliable detection of this error is implementation-depen- dent. times is not a NULL pointer, and access time or modification time or both are negative. The length of the specified path name exceeds bytes, or the length of a component of the path name exceeds bytes while is in effect. The named file does not exist. A component of the path prefix is not a directory. The effective user ID is not a user with the privilege, and not the owner of the file, and times is not a NULL pointer. The file system containing the file is mounted read-only. DEPENDENCIES
NFS may return when invoked on a remote file owned by a superuser, or users with and privileges, even if the invoking user has write permission on the file. See privileges(5) for more information about privileged access on systems that support fine-grained privileges. SEE ALSO
touch(1), stat(2), privileges(5). STANDARDS CONFORMANCE
utime(2)
All times are GMT -4. The time now is 02:39 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy