Yeah... calling ssh 300 times, to do 300 mkdir calls is a bit of a waste.
Instead of hardcoding all the paths in the script, I'd make a tarball. That will preserve permissions and let you bundle everything in one call.
I'd run this script once:
Then, whenever you want to make that whole slew of directories:
It even works over ssh, and should be tons faster:
I question the need for 777 permissions at all, really. That's a silly idea in general, giving the entire universe write-access to your directories.
Last edited by Corona688; 03-05-2012 at 05:37 PM..
Hi...
Can any1 help me by telling me the way to create multiple directories using single command....
to create 1 directory.. mkdir is used.... :D
but how to create multiple direcs. like 4 direc.
i tried ....
$ mkdir a; mkdir b; mkdir c; mkdir d
But its 4 commands in a single... (3 Replies)
Aloha,
I'm attempting to use a C program to create directories and then use a system call to have another program write .dat files into that directory. I understand that I could use the "system("mkdir directory_name")" function however, I would like my program to create a new directory each time... (3 Replies)
I need to copy around 30 directories (each directory include one or more text file(s)) from NT server to Unix server at one go. For doing this what are the privillages i should have in both NT and Unix server.
Please let me know which command i can use in shell prompt.
TIA. (4 Replies)
Hi,
I need your help in writing shortcuts to my directories. So that I can go into the directories with the help of shortcuts.
For example: there is a directory called
/home/java/webapps/project1
I want to give a shortcut as project1 . So whenever I have give cd project 1 from command line ... (3 Replies)
Hi,
Iam new to UNIX...My requirement is to create 3 dir as an hierarchy under /var/opt/temip.The output should be /var/opt/temip/GP_Int/GPTTS/AUTO.
I have tried the following script...But only GP_int folder is getting created and not other folders...Can someone help???
#!/usr/bin/ksh
#script... (1 Reply)
Hi ,
I 'm trying to check if multiple directories exist on a server, if not create the missing ones and print " creating missing directory.
how to write this in a simple script, I have made my code complex
if ; then
taskStatus="Schema extract directory exists, checking if SQL,Count and... (7 Replies)
Hi Rockers,
I hope u r dng good one. I have a one question is in unix with informatica . I need a unix script to check whether particular file exists in the folder , If it means we have a informatica server , so we can start the informatica server by accessing that file. Every week we have... (0 Replies)
Hi all,
I need to create duplicate directories and sub directories (only the directories not the files or file contents) with the same permissions. Can some one guide me in doing this. I could able to create but here the permissions should be the same how can i do this in linux.
Thanks in... (5 Replies)
Hi,
On serverB i wish to have a script that creates ONLY & EXACTLY the same folder structure that i provide on ServerA.
Thus if serverA has a folder "Output" under /opt/app/Output and has the below folders under Output
Output
Output/logs
Output/reciever
Output/data... (11 Replies)
Discussion started by: mohtashims
11 Replies
LEARN ABOUT CENTOS
pacmd
pacmd(1) General Commands Manual pacmd(1)NAME
pacmd - Reconfigure a PulseAudio sound server during runtime
SYNOPSIS
pacmd
pacmd --help
pacmd --version
DESCRIPTION
This tool can be used to introspect or reconfigure a running PulseAudio sound server during runtime. It connects to the sound server and
offers a simple live shell that can be used to enter the commands also understood in the default.pa configuration scripts.
To exit the live shell, use ctrl+d. Note that the 'exit' command inside the shell will tell the PulseAudio daemon itself to shutdown!
If any arguments are passed on the command line, they will be passed into the live shell which will process the command and exit.
OPTIONS -h | --help
Show help.
--version
Show version information.
AUTHORS
The PulseAudio Developers <pulseaudio-discuss (at) lists (dot) freedesktop (dot) org>; PulseAudio is available from http://pulseaudio.org/
SEE ALSO pulse-cli-syntax(5), pulseaudio(1), pactl(1), default.pa(5)Manuals User pacmd(1)