Hello all,
I'm trying to accomplish that if a file gets written to folder /path/to/a/ it gets automatically copied into /path/to/b/ the moment its get written.
I thought of writing a shell script and cron it that every X amount of minutes it copies these files over but this will not help me... (2 Replies)
Hi all,
I have a folder '/samplefolder' in which i have some files like data0.txt, data1.txt and data2.txt.
I have to search the folder for existence of the file data0.txt first and if found have to copy it to some other file; next i have to search the folder for existence of file... (5 Replies)
Hi all,
I have copied all my files to one folder.and i want to check how many files (count) in the folder recently moved or total files in my folder?
please send me the query asap. (3 Replies)
Hi all,
*I use Uwin and Cygwin emulator.
I´m trying to search for all text files in the current folder (C/Files) and its sub folders using
find -depth -name "*.txt"
The above command worked for me, but now I would like to copy all found text files to a new folder (C/Files/Text) with ... (4 Replies)
I have 2 files. I basically want to search both of them to see if the 1st column ($1) matches and if it matches then check to see if the 2nd column ($2) matches, then execute some code showing the results of the matches.
File 1:
AAA 123
misc blah
BBB 456
CCC 789
File 2:
... (2 Replies)
I'm not sure how to word what I'm trying to do.
I would like to:
1. Generate a list of files (easy to do ls -l > list.txt)
2. Carry out an action again each file in the list (not so easy to do)
Like:
List all files in /dir and then execute a move of each file individually. something... (6 Replies)
Hi,
I want to access files from different directories (for example: /home/dir1/file1 , /home/dir2/file2 ...) Like this i have to access these files(file1, file2...). (3 Replies)
I want to move a folder with spaces from one folder to another.
I have two folders like this,
1).RT_032-222 -4444-01/ 2). RT_032-555 -7777-01/
I want to move files from 2 to 1 through shell script.Here I want to assign this like a user defined variable like as Source branch... (2 Replies)
I need help to write shell script to copy files from one server to another server.
Source Directory UAE(inside i have another folder Misc with files inside UAE folder).I have to copy this to another server UAE folder( Files should be copied to UAE folder and Misc files should be copied in target... (3 Replies)
Hi Team,
I am new to shell script and there is a requirement where files should be moved from Subfolder to parent folder.
Eg:
parent folder --> /Interface/data/test/IN
Sub folder -->/Interface/data/test/IN/Invoice20180607233338
Subfolder will be always with timestamp... (6 Replies)
Discussion started by: srivarun15
6 Replies
LEARN ABOUT OSX
sharing
sharing(1) BSD General Commands Manual sharing(1)NAME
sharing -- create share points for afp, ftp and smb services.
SYNOPSIS
sharing [-a <path> [options]] [-e <share point name> [options]] [-r <share point name>] [-l]
DESCRIPTION
A list of flags and their descriptions:
-a <path>
add a new share point for the directory specified by <path>.
-e <share point name>
edit the share point record specified by <share point name>.
-r <share point name>
delete the share point record specified by <share point name>.
-l list all existing share point records.
Description of options The following options modify share point record attributes
-A <afp name>
use customized name <afp name> when using share point with afp.
-F <ftp name>
use customized name <ftp name> when using share point with ftp.
-S <smb name>
use customized name <smb name> when using share points with smb.
-s <flags>
use this option to modify individually, the sharing attribute for afp, ftp and smb. By default a share point record is enabled for
afp, ftp and smb. To modify the indiviual attributes AND the following flags as required: 100 (enable sharing for afp only), 010
(enable sharing for ftp only), 001 (enable sharing for smb only). Specify 000 to turn off sharing of a share point all together.
use customized name <smb name> when using share points with smb.
-g <guest flag>
use this option to modify individually, the "guest" attribute for afp, ftp and smb. The "guest" attribute specifies whether a ser-
vice will allow guest access to this share point record. By default a "guest" is enabled for afp, ftp and smb. To modify the
attribute, AND the following <guest flags> as required: 100 (enable guest access for afp only), 010 (enable guest access for ftp
only), 001 (enable guest access for smb only). Specify 000 to turn off guest access for the share point all together.
-i <inherit privileges flag>
use this option to modify the "inherit privileges" attribute for afp. The "inherit privileges" attribute specifies whether afp will
apply the classic privilege model to operations within this share point. By default "inherit privileges" is disabled for afp. To
modify the "inherit privileges", AND the following <guest flags> as required: 10 (enable "inherit privileges" for afp only). Spec-
ify 00 to turn off "inherit privileges" for the share point all together.
-n <customized record name>
Specify a <customized record name> to be used as the share point record name. By default the record name is the name of the direc-
tory pointed to by the share point record. This directory is specified bt the <path> when the record is created.
EXAMPLES
/usr/sbin/sharing -a /SomePath/ShareThisDirectory
This example shows how create a share point record for the directory "/SomePath/ShareThisDirectory".
/usr/sbin/sharing -e ShareThisDirectory -A SP1 -g 101
This example shows how to edit the share point record created above, adding a customized name "SP1" for afp servies, and enabling guest
access only for afp and smb.
FILES
/usr/sbin/sharing location of tool
Mac OS X Server June 2, 2019 Mac OS X Server