Are these sansa devices physically labeled in a unique way? Is the data files on each one different? Just trying to understand the problem at hand. If the data is the same on each device then it should be a simple solution. If it is unique data on each device then you will need to create a unique identifying file (perhaps a hidden dot file) that would uniquely identify the device. I would use the ${username} with a number on the end.
Hi,
I want to write a script that deletes all folders and keep the last 10 recent folders.
I know the following:
ls -ltr will sort the folders from old to recent.
ls -ltr | awk '{print $9}' will list the folder names (with a blank line at the beginning)
I want to get the 10th folder from... (3 Replies)
Hey there,
I am trying to move zipped text files from a remote server to a remote tape storage facility, through my home directory. What I want to do is get the zip file (using scp), unzip it, copy the output text file which was inside (using rfcp) to the tape storage server, and then delete... (3 Replies)
So tried:
cp -r -p test1/ user@machine:///srv/www/vhosts/domain.co.uk/httpdocs/backup/
but this didn't work either :(
Anyone able to help with this?
Many thanks
Mr M (3 Replies)
i have users home directories in /home
all the users have some files starting with character e
and i want to copy all these files in a folder in my (root) home
using a script
i tried the script
for i in m5
do
cd m5
cp e1* /home/pc/exam
cd ..
done
but get these... (3 Replies)
I need to delete a folder and files in it of yesterdays and simply put this in cron.
Folder name - "2010-03-2010"
File name - "eprod_06_23.dmp" and "eprod_06_23.exp"
Actually this folder and file is been created by a script which takes a backup of DB everyday.Thats why it creates folder and file... (3 Replies)
Hi..
I have 2 servers with linux suse10.
I made a mistake and on one of the servers changed with chmod the permission of root in directory /.
In the other servers the permissions are correct
Please i need a script, to change the permissions of one server 1, using the same permission of the... (11 Replies)
I have files existing with same names in the folders with date as display below
c:\2010-09-10 <==== folder
arr1.jpg
arr2.jpg
arr3.jpg
arr4.jpg
c:\2010-09-09 <==== folder
arr1.jpg
arr2.jpg
c:\2010-09-08 <==== folder
arr2.jpg
arr3.jpg
arr4.jpg
... (5 Replies)
Hi,
I just started to learn shell progamming and just can't get my head around the following problem.
I need to do the following:
I have a folder which contains 100+ subfolders. Inside these subfolders there is one folder named 'Morph' and several jpg's.
I need to copy all the files into... (4 Replies)
Dear All,
I will appreciate any help received. Our system is running on hpux v1
My problem is as follows:
We have many customer folders with name fd000100, fd000101 and so on
e.g.
(Testrun)(testsqa):/>ll /TESTrun/fd000100
total 48
drwxrwx--- 2 fq000100 test 96 Jun 27 2004... (17 Replies)
Hi,
So i know we use cp -r as a basic to copy folders/files.
I would like this BUT i would like to show the output of the files being copied.
With the amazing knowledge i have i have gone as far as this:
1) find source/* -exec cp -r {} target/ \;
2) for ObjectToBeCopied in `find... (6 Replies)
Discussion started by: Imre
6 Replies
LEARN ABOUT PLAN9
lpinfo
lpinfo(8) Apple Inc. lpinfo(8)NAME
lpinfo - show available devices or drivers
SYNOPSIS
lpinfo [ -E ] [ -U username ] [ -h server[:port] ] [ -l ] [ --device-id device-id-string ] [ --exclude-schemes scheme-list ] [ --include-
schemes scheme-list ] [ --language locale ] [ --make-and-model name ] [ --product name ] -m
lpinfo [ -E ] [ -U username ] [ -h server[:port] ] [ -l ] [ --exclude-schemes scheme-list ] [ --include-schemes scheme-list ] [ --timeout
seconds ] -v
DESCRIPTION
lpinfo lists the available devices or drivers known to the CUPS server. The first form (-m) lists the available drivers, while the second
form (-v) lists the available devices.
OPTIONS
lpinfo accepts the following options:
-E
Forces encryption when connecting to the server.
-U username
Sets the username to use when connecting to the server.
-h server[:port]
Selects an alternate server.
-l
Shows a "long" listing of devices or drivers.
--device-id device-id-string
Specifies the IEEE-1284 device ID to match when listing drivers with the -m option.
--exclude-schemes scheme-list
Specifies a comma-separated list of device or PPD schemes that should be excluded from the results. Static PPD files use the "file"
scheme.
--include-schemes scheme-list
Specifies a comma-separated list of device or PPD schemes that should be included in the results. Static PPD files use the "file"
scheme.
--language locale
Specifies the language to match when listing drivers with the -m option.
--make-and-model name
Specifies the make and model to match when listing drivers with the -m option.
--product name
Specifies the product to match when listing drivers with the -m option.
--timeout seconds
Specifies the timeout when listing devices with the -v option.
COMPATIBILITY
The lpinfo command is unique to CUPS.
SEE ALSO lpadmin(8),
http://localhost:631/help
COPYRIGHT
Copyright 2007-2011 by Apple Inc.
5 December 2008 CUPS lpinfo(8)