Sponsored Content
Full Discussion: Copy duration of cp
Top Forums UNIX for Dummies Questions & Answers Copy duration of cp Post 302562734 by Corona688 on Saturday 8th of October 2011 12:38:41 AM
Old 10-08-2011
Other than watching filesizes change with ls or du -hs /path/to/destination, no.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

duration calculation

I have a file which has 3 coloumns emp_name, Joining_date, Designation. abc 12/1/2001 SSE def 2/25/2007 SE ghi 3/18/2009 SA abc 8/1/2008 SSE def 2/13/2007 SE ghi 3/24/2005 SA I need to find out the emp who has been in the company for longest period(Till date). Can I have any... (3 Replies)
Discussion started by: siba.s.nayak
3 Replies

2. Solaris

ufsdump backup duration

hi, i'm trying to figure out how to tell the amount of time a ufsdump of a directory takes. i use the below command: echo "Starting Backup of u4" >> /backup/backup.log 2>&1 /usr/sbin/ufsdump 0uf /dev/rmt/0n /u4 >> /backup/backup.log 2>&1 echo "Finished Backup of u4" >> /backup/backup.log... (0 Replies)
Discussion started by: pinoy43v3r
0 Replies

3. Shell Programming and Scripting

Convert duration of the process to seconds

Hi, I am looking to write a script to kill the process which are running for more than 7 days. So i have a command like "ps -eo pid,etime,args | grep -i xxxx" ( process which has xxx in it and running for more than 7 days needs to be killed ). When i exeucte the above command , i am... (2 Replies)
Discussion started by: forums123456
2 Replies

4. UNIX Desktop Questions & Answers

arecord not interrupted after specified duration

I have used the arecord command like this arecord -d 1 test.wav It is keep on waiting. I need to manually interrupt it by ctrl-c. Why it is not interrupting after one second? The arecord version which I am using is : arecord: version 1.0.23 by Jaroslav Kysela (3 Replies)
Discussion started by: thillai_selvan
3 Replies

5. Shell Programming and Scripting

Sort by Duration

.......................................................................................................................... 03:40 Geonetric File from CCL Complete 03:40:59 03:41:08 00:00:09 00:00:01 N/A 005 sys_runccl ... (7 Replies)
Discussion started by: Daniel Gate
7 Replies

6. Shell Programming and Scripting

Perl ::duration of time in between dates

Hello All, I have two strings with date and time as follows.. $starttime= "06/11/2013 "; $starttime= "05:15"; $enddate="06/12/2013"; $endtime="04:45"; dates are in mm/dd/yyyy format and time in military format. and I am looking the duration of time(in minutes) in between dates. ... (3 Replies)
Discussion started by: scriptscript
3 Replies

7. UNIX for Beginners Questions & Answers

Process duration

Hi , How can I check that for a single process, for example pagent for how much duration this process was up or down and also I need multiple entries if this process was down or up multiple times. Please help. (3 Replies)
Discussion started by: Ashish Garg
3 Replies

8. Shell Programming and Scripting

Need help in Inix script for finding duration

I have a file with time in it. I need to find the duration between the timestamp by subtracting second row from third row and so on. and wherever it is more than 30 minutes it should display start and end time which have been subtracted file : 00:44:11 00:44:11 00:44:13 00:44:13 00:46:51... (2 Replies)
Discussion started by: Muskaan
2 Replies

9. Shell Programming and Scripting

Duration Calculation

I have 2 variables startTime='122717 23:20' endTime='122817 0:40' how can i get the elapsed duration as like "1 hour 20 minutes" ? (8 Replies)
Discussion started by: vikram3.r
8 Replies

10. Shell Programming and Scripting

Function to get the duration of all videos in a folder(s)

did this function to generate the duration of all the video files in a folder or multiple folders, it works fine for my use (I am no Guru as you may have noticed) but when I give it a lot of folders the calculation get a bit borked. If any good soul had the energy to look at it and give... (4 Replies)
Discussion started by: zouhair
4 Replies
lifcp(1)						      General Commands Manual							  lifcp(1)

NAME
lifcp - copy to or from LIF files SYNOPSIS
xxx] xxx] xxx] xxx] file1 file2 xxx] xxx] xxx] xxx] [file1 file2 ...] directory DESCRIPTION
copies a LIF file to an HP-UX file, an HP-UX file to a LIF file, or a LIF file to another LIF file. It also copies a list of (HP-UX/LIF) files to a (LIF/HP-UX) directory. The last name on the argument list is the destination file or directory. Options The space between option and argument is optional. Used only when copying files to a LIF volume. This option forces the file type of the LIF directory entry to be set to the argument given. The argument can be decimal, octal or hex, using standard C notation. Used only when copying files to a LIF volume. This option will set the "last volume flag" to xxx (0 or 1). The default "last volume flag" is Used only when copying files to a LIF volume. This option sets the "volume number" to xxx. The default "volume number" is one. This option forces a ASCII mode of copying regardless of the file type. When copying in ASCII mode from HP-UX to LIF the default file type is BINARY (1). (For details on available modes of copying refer to lif(4)). This option has no effect when copying from LIF to LIF. This option forces a BINARY mode of copying regardless of the file type. When copying in BINARY mode from HP-UX to LIF the default file type is BINARY (-2). (For details on available modes of copying refer to lif(4)). This option has no effect when copying from LIF to LIF. Used only when copying files to a LIF volume. This option sets the "implementation" field of the LIF directory entry to the argument given. The argument value can be decimal, octal or hex, using standard C notation. The "implementation" field can only be set for file types -2001 to -100000 (octal). The "implementation" field is set to zero for all interchange file types and for file types -2 to -200 (octal). Note that the "implementation" value controls the attributes of the LIF file with regard to protection and record sizes. or can be used to determine the "implementation" value of a file. Forces RAW mode copying regardless of file type. When copying in RAW mode from HP-UX to LIF the default file type is BIN (-23951). option overrides the default file type. (various modes of copying are explained in lif(4).) The option has no effect in LIF to LIF copy operations. causes HP-UX file names to be translated to a name acceptable by a LIF utility; that is, all lowercase letters are converted to uppercase and all other characters except numerics are changed to an underscore If the HP-UX file name starts with a nonletter, the file name is preceded by the capital letter Thus, for example, if two files named colon and semicolon were copied, both of them would be translated to File names are truncated to a maximum of 10 characters. When copying a LIF file to an HP-UX or LIF file, has no effect. Omitting causes an error to be generated if an improper name is used. The default copying modes when copying from LIF to HP-UX are summarized in the following table: | File Type | Default Copying Mode ----------+---------------------- ASCII | ASCII BINARY | BINARY BIN | RAW other | RAW When copying from HP-UX to LIF, the default copying mode is ASCII and an ASCII file is created. When copying from LIF to LIF, if no options are specified, then all the LIF directory fields and file contents are duplicated from source to destination. A LIF file name is recognized by the embedded colon delimiter (see lif(4) for LIF file naming conventions). A LIF directory is recognized by a trailing colon. If an HP-UX file name containing a colon is used, the colon must be escaped with two backslash characters (the shell removes one of them). The file name (dash) is interpreted to mean standard input or standard output, depending on its position in the argument list. This is particularly useful if the data requires nonstandard translation. When copying from standard input, if no other name can be found, the name "STDIN" is used. LIF file naming conventions are known only to the LIF utilities. Since file name expansion is done by the shell, this mechanism cannot be used for expanding LIF file names. Do not mount the special file while using DIAGNOSTICS
returns exit code 0 if the file is copied successfully. Otherwise it prints a diagnostic and returns nonzero. EXAMPLES
Copy HP-UX file to LIF file on LIF volume which is actually an HP-UX file initialized to be a LIF volume: Copy all the HP-UX files in the current directory to the LIF volume which is present in the parent directory. File names are translated to appropriate LIF file names. Copy all the HP-UX object files in the current directory to the LIF volume lifvol. Copying mode is RAW and LIF file types are set to -5555. Copy all the object files in the current directory to the LIF volume Copying mode is BINARY and LIF BINARY files are created. Copy a BDAT file, without a password, from a BASIC WorkStation to an HP-UX LIF volume Note that controls protection and record size attributes. The file type for a BDAT file is -5791 (or 0xffffe961) and its record size is 256 bytes per record. Copy all files in the current directory to the LIF volume in the directory. Copying mode is RAW and LIF file types are set to BIN. Copy file to LIF file in Copy files and to LIF files and within Copy LIF file within to file within current directory. Copy standard input to LIF file on LIF volume Copy LIF file in to LIF file on Copy the output of pr to the LIF file Copy the output of pr to the LIF volume LIF file is created since no file names are specified. Copy LIF file in to standard output. Copy all files in current directory to LIF files of the same name on LIF volume (may cause errors if file names in the current directory do not obey LIF naming conventions!). DEPENDENCIES
Series 700/800 The following option is also supported: forces each file copied in to begin on an nnn x 1024-byte boundary from the beginning of the volume. This is useful when files are used for Series 700/800 boot media. This option has no effect when copying from a LIF volume. AUTHOR
was developed by the Hewlett-Packard Company. SEE ALSO
lifinit(1), lifls(1), lifrename(1), lifrm(1), lif(4). lifcp(1)
All times are GMT -4. The time now is 03:35 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy