Sponsored Content
Top Forums Shell Programming and Scripting Copy files gives "cp: omitting directory" error Post 302335457 by kshji on Sunday 19th of July 2009 12:16:49 PM
Old 07-19-2009
Yes, so has cp done forever.
man cp
give answer.

Answer for your problem ? You have to give two commandlines
cp source dest1
cp source dest2
 

10 More Discussions You Might Find Interesting

1. Filesystems, Disks and Memory

Restoring back files from "lost+found" directory

Hi Friends, How can I Restore the Files present under "lost+found" Directory of a FileSystem (in Solaris & Tru64 OS) to their original Locations. Now-a-days I am loosing lots of files in 2 of my Machines, One running Solaris8 and other Tru64(Digital) Unix. Thanx in... (1 Reply)
Discussion started by: dhasarath
1 Replies

2. Shell Programming and Scripting

Error to "find" a matching array element in a directory

Hi, I have defined an array which holds a couple of elements which are nothing but files names. I want to find the files in a directory for the matching file name(array elements) with less than 1 day old. When I am trying to execute the code (as below), it gives an error. Your help in this... (1 Reply)
Discussion started by: mkbaral
1 Replies

3. UNIX for Advanced & Expert Users

Why is wget copying my directory tree with some files with "@"?

I'm using wget 1.11.4 on Cygwin 1.5.25. I'm trying to recursively download a directory tree, which is the root of a javadoc tree. This is approximately the command line I tried: wget -x -p -r http://<host>/.../apidoc When it finished, it seemed like it downloaded... (0 Replies)
Discussion started by: dkarr
0 Replies

4. Shell Programming and Scripting

Delete files older than "x" if directory size is greater than "y"

I wrote a script to delete files which are older than "x" days, if the size of the directory is greater than "y" #!/bin/bash du -hs $1 while read SIZE ENTRY do if ; then find $1 -mtime +$2 -exec rm -f {} \; echo "Files older than $2 days deleted" else echo "free Space available"... (4 Replies)
Discussion started by: JamesCarter
4 Replies

5. Shell Programming and Scripting

"Join" or "Merge" more than 2 files into single output based on common key (column)

Hi All, I have working (Perl) code to combine 2 input files into a single output file using the join function that works to a point, but has the following limitations: 1. I am restrained to 2 input files only. 2. Only the "matched" fields are written out to the "matched" output file and... (1 Reply)
Discussion started by: Katabatic
1 Replies

6. Shell Programming and Scripting

awk command to replace ";" with "|" and ""|" at diferent places in line of file

Hi, I have line in input file as below: 3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL My expected output for line in the file must be : "1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL" Can someone... (7 Replies)
Discussion started by: shis100
7 Replies

7. UNIX for Advanced & Expert Users

getting error "ssh-copy-id: not found"

Hello, i am trying to make an ssh connection from one server to another and invoke a script on another server. while doing this i want to do a passwordless ssh connection for the same, for which i have used the following command ssh-keygen -t rsa ssh-copy-id -i... (3 Replies)
Discussion started by: arwant
3 Replies

8. Shell Programming and Scripting

Delete all log files older than 10 day and whose first string of the first line is "MSH" or "<?xml"

Dear Ladies & Gents, I have a requirement to delete all the log files in /var/log/test directory that are older than 10 days and their first line begin with "MSH" or "<?xml" or "FHS". I've put together the following BASH script, but it's erroring out: for filename in $(find /var/log/test... (2 Replies)
Discussion started by: Hiroshi
2 Replies

9. OS X (Apple)

Copy files between partitions with "without auto-mount" option enabled - possible?

Hello, fellow Unixers and Macers, I'll run several OS X versions each on its own dedicated partition. Partitions won't be seeing each other (by editing fstab). Question: will I be able to copy files between those partitions? Partition #1: Mavericks. Partition #2: HighSierra (2 Replies)
Discussion started by: scrutinizerix
2 Replies

10. AIX

Apache 2.4 directory cannot display "Last modified" "Size" "Description"

Hi 2 all, i have had AIX 7.2 :/# /usr/IBMAHS/bin/apachectl -v Server version: Apache/2.4.12 (Unix) Server built: May 25 2015 04:58:27 :/#:/# /usr/IBMAHS/bin/apachectl -M Loaded Modules: core_module (static) so_module (static) http_module (static) mpm_worker_module (static) ... (3 Replies)
Discussion started by: penchev
3 Replies
lpsched(1M)															       lpsched(1M)

NAME
lpsched, lpshut, lpmove, lpfence - start the LP request scheduler; stop the LP request scheduler; move requests between LP destinations; define the minimum priority for printing SYNOPSIS
requests dest dest1 dest2 printer fence DESCRIPTION
Schedules requests taken by for printing on printers. is typically invoked in This creates a process which runs in the background until is executed. The activity of the process is recorded in recognizes the following options: Write a verbose record of the process on Write logging data on Shuts down the printer scheduler. All printers that are printing at the time is invoked stop printing. Requests that were printing at the time the scheduler was shut down are reprinted in their entirety after is started again. All LP commands perform their functions even when is not running. Moves requests that were queued by between LP destinations. The first form of the command moves the named requests to the LP destination, dest. requests are request IDs as returned by The requests that are currently printing will not be moved. The second form of the command moves all requests for destination dest1, including requests that are currently printing, to destination dest2. As a side effect, dest1 rejects all subsequent requests. Note that never checks the acceptance status (see accept(1M)) for the new destination when moving requests. Defines the minimum required priority for the spooled file to be printed. fence must be in between 0 (lowest fence) and 7 (highest fence). Each printer has its own fence, which is initialized to 0 when it is configured by the command. EXTERNAL INFLUENCES
Environment Variables determines the format and contents of date and time strings. determines the language in which messages are displayed. If is not specified in the environment or is set to the empty string, the value of is used as a default for each unspecified or empty vari- able. If is not specified or is set to the empty string, a default of "C" (see lang(5)) is used instead of If any internationalization variable contains an invalid setting, the commands behave as if all internationalization variables are set to "C". See environ(5). EXAMPLES
Move requests and from destination queues and to the destination queue if the requests are not currently printing. Move all requests from the destination queue laserjet1 to the destination queue laserjet2. This will also cause laserjet1 to reject all subsequent print requests to it. All currently printing requests from laserjet1 will be reprinted on laserjet2. Suppose is a member of classes and Running this command will cause only print requests of priority 5 and above from queues and to be printed on printer Print requests of priority 4 and below will not be picked by the scheduler for printing on WARNINGS
and perform their operation on the local system only. FILES
SEE ALSO
cancel(1), enable(1), lp(1), lpstat(1), accept(1M), lpadmin(1M), lpana(1M), rcancel(1M), rlp(1M), rlpdaemon(1M), rlpstat(1M). lpsched(1M)
All times are GMT -4. The time now is 08:51 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy