smaller sample from a larger script: i'm simply trying to copy files from one desktop directory on a mac to another using variables. when i first test the logic of the script without variables, everything works and the copy is effective.
but i'm unable to call the same copy by passing a variable. script runs as root, FYI. much obliged if you can weigh in. hoping it's just a syntax error that i'm missing.
i'm assuming that i've got a syntax error here but i can't see where. i use similar syntax in other scripts all the time...
thanks for whatever insight you might have to share.
david
---------- Post updated at 03:27 PM ---------- Previous update was at 03:20 PM ----------
forgot to mention the error i'm getting:
which is odd as:
a) the directory does exist
b) when i run the cp manually and without variables, it's. just. fine.
I am new user to solaris and installed solaris operating system on full Harddisk 120Gb. I am unable to copy music files to desktop and /home directory.
One thing happened while registering is- i entered login-root and its password. The message prompted your system is crashed. Is it because of... (1 Reply)
hi
I want to copy all files from the current directory and move to .archive file.
Moreover,I want to add .bak to each file name, that will be copied.
How can I do that? (4 Replies)
Hi,
I understand that to copy files across server, the feasible way will be using scp command. Am I right?
What if the two servers are not connected to a network? If by using a cross cable to link up both the server, what will be the best (fastest) way to copy files across? scp as well?
... (3 Replies)
I am userB and have a dir
/temp1
This dir is owned by me.
How do I recursively copy files from another users's dir userA?
I need to preserve the original user who created files, original group information, original create date, mod date etc.
I tried
cp -pr /home/userA/* .
... (2 Replies)
Hi All,
I'm trying to list some files from my log directory
and files are like this
log.20110302_20.gz
log.20110302_21.gz
log.20110302_22.gz
log.20110302_23.gz
log.20110303_00.gz
log.20110303_01.gz
log.20110303_02.gz
............
log.20110311_22.gz
log.20110311_23.gz... (2 Replies)
Hi All,
I have a perl script blc.pl; i have five variables a,b,c,d and e in this script.
Now I want to copy the values of these variables into a data file,say abc.dat.. Can anybody please tell me how to do this?
Any help is appreciated..
Thanks in advance (2 Replies)
Hi All,
I am doing this for svn patch making. I got the list of files to make the patch. I have the list in a file with path of all the files.
To Do
From Directory : /myproject/MainDir
To Directory : /myproject/data
List of files need to copy is in the file: /myproject/filesList.txt
... (4 Replies)
All,
I need to grab and rename common files from several unique directory structures. For example, the directory structures looks like:
/unique_dir/common/common/common/person_name_dir/common_file.txt
There are over 90,000 of these text files that I'd like to put in a single directory as... (5 Replies)
I'm trying to do this exact same thing, so far I have created this to move files
i've named my script CP.sh
#!/bin/bash
cd /root/my-documents/NewDir/
for f in *.doc
do cp -v $f root/my-documents/NewDir $f{%.doc}
done
When i go to run this in the console i type, bin/sh/ CP.sh
but it... (7 Replies)
Discussion started by: MKTM_93_SIMP
7 Replies
LEARN ABOUT DEBIAN
profile-manager
PROFILE-MANAGER(1) General Commands Manual PROFILE-MANAGER(1)NAME
profile-manager - starts the gui for configuring the metadata used by desktop-profiles
SYNOPSIS
profile-manager
DESCRIPTION
The desktop profiles package needs metadata about the available profiles in order to decide when to activate which profiles. This metadata
is contained in the .listing files placed in the /etc/desktop-profiles directory. This convenience script will start a graphical interface
for configuring that metadata.
The gui is a kommander script, so you need to have the kommander package installed for the gui to work (the script will check if the neces-
sary prerequisites are present, and tell you what's missing if necessary).
OPTIONS
There are no options
FILES
/etc/desktop-profiles/*.listing - Files containing the metadata about installed profiles
BUGS
The gui currently barks at profile metadata containing a single quote in the description.
AUTHOR
This manual page was written by Bart Cornelis <cobaco@skolelinux.no>.
SEE ALSO desktop-profiles(7), list-desktop-profiles(1), update-profile-cache(1)desktop-profiles May 07, 2005 PROFILE-MANAGER(1)