03-29-2011
How to move a directory from thumb drive to mac?
I do some scripting during lunch on the macbookpro at work. I have the necessary folders on a thumb drive from my mac at home, and move them with the mv command to the mbpro so I don't have to change the script itself to access the necessary files on the thumb drive, and then change the code again when I'm back on the imac at home.
Anyhoo ... yesterday I tried to move the necessary folders to the thumb drive from my iMac, but got a a message saying
(directory name) is a directory -- not copied.
Can anyone tell me why it would do this -- may it have something to do with the permissions or author of the files -- perhaps the author of the files changes depending on what machine the updated code is written on?
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Is this possible? Let me know If I need specify further on what I am trying to do- I just want to spare you the boring details of my personal file management.
Thanks in advance-
Brian- (2 Replies)
Discussion started by: briandanielz
2 Replies
2. UNIX for Dummies Questions & Answers
I have some sensitive data I would like to keep on a thumb drive.
Now I know this is a UNIX/Linux forum and I regret to say that I'm using windows but I'm hoping that is irrelevant.
So I install gpg on both windows machines: one at home and the other at work.
I encrypt some stuff on the... (2 Replies)
Discussion started by: siegfried
2 Replies
3. Solaris
Hi,
I 've a M5000 system with 2 domains configured on it. How can i move the DVD from one domain to the other ? so that i can access the drive in the second domain. cfgdevice -l does not work on M5000 (6 Replies)
Discussion started by: fugitive
6 Replies
4. SCO
Hello Unix World,
I've been having this issue for the longest time.
Here is my setup
OS: SCO OpenServer 6.0 with mp4, mp3
Server: Dell PowerEdge 840, 800, 2900
USB Stick: Patriot 16GB High Speed, and many other different brands.
Occasinaly while system is running and USB is pluged in the... (0 Replies)
Discussion started by: miles556
0 Replies
5. Shell Programming and Scripting
I Need help for one requirement,
I want to move the latest/Older file in the folder to another file. File have the datetimestamp in postfix.
Example:
Source Directory : \a
destination Directory : \a\b
File1 : xy_MMDDYYYYHHMM.txt (xy_032120101456.txt)
File2: xy_MMDDYYYYHHMM.txt... (1 Reply)
Discussion started by: pp_ayyanar
1 Replies
6. HP-UX
Hi,
I have a problem again and I hope that someone on this forum will help me in solving it. My English is weak, but I'll try to describe it clearly.
I have an old computer ( HP B180) with HP-UX 10.20. I've done the hard disk image using G4L and replaced the drive. Old drive has 4.3 GB and 9.1... (7 Replies)
Discussion started by: ftwojtek
7 Replies
7. UNIX for Dummies Questions & Answers
Hi Guys,
Can any one help me on this.
I need help to move .csv/.xls file from unix path to windows shared drive or c:\ drive?
Regards,
LKR (1 Reply)
Discussion started by: lakshmanraok117
1 Replies
8. Shell Programming and Scripting
Hi all,
i have a folder, with tons of files containing as following,
on /my/folder/jobs/
some_name_2016-01-17-22-38-58_some name_0_0.zip.done
some_name_2016-01-17-22-40-30_some name_0_0.zip.done
some_name_2016-01-17-22-48-50_some name_0_0.zip.done
and these can be lots of similar files,... (6 Replies)
Discussion started by: charli1
6 Replies
9. UNIX for Dummies Questions & Answers
Hi All,
Daily i am doing the house keeping in one of my server and manually moving the files which were older than 90 days and moving to destination folder.
using the find command . Could you please assist me how to put the automation using the shell script .
... (11 Replies)
Discussion started by: venkat918
11 Replies
10. Shell Programming and Scripting
I have a script, which is checking if file exists and move it to another directory
if
then
mkdir -p ${LOCL_FILES_DIR}/cool_${Today}/monthly
mv report_manual_alloc_rpt_A_I_ASSIGNMENT.${Today}*.csv ${LOCL_FILES_DIR}/cool_${Today}/monthly
... (9 Replies)
Discussion started by: digioleg54
9 Replies
LEARN ABOUT FREEBSD
mac_prepare
MAC_PREPARE(3) BSD Library Functions Manual MAC_PREPARE(3)
NAME
mac_prepare, mac_prepare_type, mac_prepare_file_label, mac_prepare_ifnet_label, mac_prepare_process_label -- allocate appropriate storage for
mac_t
SYNOPSIS
#include <sys/mac.h>
int
mac_prepare(mac_t *mac, const char *elements);
int
mac_prepare_type(mac_t *mac, const char *name);
int
mac_prepare_file_label(mac_t *mac);
int
mac_prepare_ifnet_label(mac_t *mac);
int
mac_prepare_process_label(mac_t *mac);
DESCRIPTION
The mac_prepare family of functions allocates the appropriate amount of storage and initializes *mac for use by mac_get(3). When the result-
ing label is passed into the mac_get(3) functions, the kernel will attempt to fill in the label elements specified when the label was pre-
pared. Elements are specified in a nul-terminated string, using commas to delimit fields. Element names may be prefixed with the '?' char-
acter to indicate that a failure by the kernel to retrieve that element should not be considered fatal.
The mac_prepare() function accepts a list of policy names as a parameter, and allocates the storage to fit those label elements accordingly.
The remaining functions in the family make use of system defaults defined in mac.conf(5) instead of an explicit elements argument, deriving
the default from the specified object type.
mac_prepare_type() allocates the storage to fit an object label of the type specified by the name argument. The mac_prepare_file_label(),
mac_prepare_ifnet_label(), and mac_prepare_process_label() functions are equivalent to invocations of mac_prepare_type() with arguments of
"file", "ifnet", and "process" respectively.
RETURN VALUES
Upon successful completion, the value 0 is returned; otherwise the value -1 is returned and the global variable errno is set to indicate the
error.
SEE ALSO
mac(3), mac_free(3), mac_get(3), mac_is_present(3), mac_set(3), mac(4), mac.conf(5), maclabel(7)
STANDARDS
POSIX.1e is described in IEEE POSIX.1e draft 17. Discussion of the draft continues on the cross-platform POSIX.1e implementation mailing
list. To join this list, see the FreeBSD POSIX.1e implementation page for more information.
HISTORY
Support for Mandatory Access Control was introduced in FreeBSD 5.0 as part of the TrustedBSD Project. Support for generic object types first
appeared in FreeBSD 5.2.
BSD
August 22, 2003 BSD