What Unix command is used to assert a file or folder's color label assignment?

I'm doing some scripting to automate processes on my XSan.  One of the functions I find I'm doing over and over frequently is changing file ownership, permissions, changing the color of the parent folder based on the status of the files in it, and then locking the file.  I know the UNIX equivalents for three of the four commands:
chown-- for the file ownership
chmod-- for the permissions
chflags-- for the lock bit
but I've been looking through man pages all day and can't find what command asserts the file or folder's "label" color attribute.  I'd rather do this in command line that in Automator, as it's faster and I have hundreds of folders containing files that I need to lock down.  My boss is considering replacing XSAN with Compellent, and I'm trying to show how easy MacOS is to manage when you can script everything involved in maintaining it.  This will go a long way towards making that case.

Wrong forums. Try https://discussions.apple.com/community/mac_os/mac_os_x_technologies#/?tagSet=10 48

Similar Messages

  • Unix command to create a copy of file from unix directory

    Hi guys,
    what is the Unix command to create a copy of file from unix directory?
    Thanks a lot!

    If you haven't noticed, this is a ABAP forum.
    You can go to the UNIX thread instead and post it there,
    SAP on UNIX
    You can expect answers there

  • What application can you use to open a file with the .acc extension?

    What application can you use to open a file with the .acc extension?

    http://www.fileinfo.com/extension/acc

  • Use Automator to move files and folder structure to another folder, retaining destination contents

    I have been struggling trying to setup Automator to move files and folder structure to another folder, retaining the destination contents.  Basically, I need to add files at the destination, within the same folder structure that exists at the source.  Here's some details about the scenario:
    -I have PDF files that I create on a seperate computer than I my daily use machine
    -For security reasons, the source computer doesn't have access to any shares on the destination computer
    -The destination computer has access to shares on the source computer
    -I want to delete the original PDFs at the source after they are moved or copied
    I haven't been able to get Automator to move or copy the folder contents (files and subfolders) without dropping everything copied at the top level of the destination, resulting in many duplicate folders and a broken folder structure.
    So far I've only had luck getting this to work at the command line, but I'd really like to have this setup in Automator so that I could have either a service or application that I could use for any folder, prompting for the source and destination folders.  I'm a relatively new Mac user with limited Linux experience, so this is the command that I've cobbled together and currently accomplishes what I'm looking for:
    ditto /Volumes/SMB_Temp/SOURCE ~/Desktop/Documents/DESTINATION
    cd /Volumes/SMB_Temp/SOURCE
    find . -type f -name "*.pdf" -exec rm -f {} \;
    Thanks for any ideas!

    If you have a command-line syntax that works, why not just create an Automator workflow with a single 'Utilities -> Run Shell Script' action, where that action has your (working) shell commands?
    Seems way, way simpler to me than trying to reinvent the wheel and transcribe shell commands into individual Automator actions

  • Prevent using special characters in file and folder names?

    I've recently begun adding windows clients to my network. In doing so, I've found that on my file shares from OS X server, the windows clients are unable to see files and folders which have names containing special characters such as / ? < > \ : * | ”
    Unfortunately my accounting department has been creating files with these characters in their names for several years. I would like to find if there is a way to prevent them from using a defined set of characters in the file and folder names to prevent them from "accidentally" doing so in the future.
    I've found that by turning off streams support on SMB in OS X server, that my windows clients can at least see that a file or folder should exist, albeit with a corrupted file name. Removing the special characters from these names allows the proper name to become visible and the file accessible.
    Any info would be greatly appreciated.

    (_seb_) wrote:
    > Gary White wrote:
    >> On Sun, 19 Nov 2006 19:15:04 +0100, "(_seb_)"
    <[email protected]> wrote:
    >>
    >>> "ça alors: it's a déjà-vu"
    >>>
    >>> How can I encode this so it's valid as a
    directory name, yet can be
    >>> displayed as intended when the name is output to
    the page.
    >>> urlencode() does not do the job, neither does
    htmlentities()...
    >>
    >>
    >> What's wrong with:
    >>
    >> $l="ça alors: it's a déjà-vu";
    >> print urlencode($l)."<br>\n";
    >> print htmlspecialchars($l);
    >>
    >> Gary
    >
    >
    > I know that, but what is the name of the directory? It
    has to be a real
    > directory name, not a string stored somewhere.
    >
    > What's a valid encoding for a directory named "ça
    alors: it's a
    > déjà-vu"? I can call a folder like this on my
    Mac, but it won't work on
    > any server...
    >
    >
    >
    PS: basically it's not a url encoding issue.
    I can url encode "ça alors: it's a déjà-vu",
    and pass it in a url query string. But my issue is not
    with an url query string, it's with an actual URL, that is,
    the actual name of the directory. It
    can't be "ça alors: it's a déjà-vu". But I
    want to allow the user to name their directory like that
    if they want. So I need a way to encode this into characters
    that can be used for an actual
    directory on the server.
    seb ( [email protected])
    http://webtrans1.com | high-end web
    design
    Downloads: Slide Show, Directory Browser, Mailing List

  • What unix commands are guaranteed to exist for exec?

    hi,
    does anyone know if there is a list of commands that are common to all unix platforms, that you could call from a Runtime.exec?
    I'm interested in 'hostname' and 'which' at the moment
    thanks,
    asjf

    When you do exec(), no environment variables will be passed to the
    commandline you are executing, so "/usr/bin/which" would not work,
    since it uses PATH env variable. If you want, you can pass
    the environment through one of the overloaded exec
    calls.that was my understanding too, but doing
    Runtime.exec("/usr/bin/which which")
    returns
    "/usr/bin/which"
    or even doing just Runtime.exec("which which") gives the same result
    maybe the JVM is being helpful somehow? (although I still don't understand where /usr/bin/env is getting its environment variables from?)
    Most of the common unix utilities are in /usr/binthanks! theres quite a lot of them..

  • What to command to use to show IP address

    Gurus, I have a Catalyst 3560, and was wondering what command I could use to show the IP Address of the device plugged into a specific port?
    Thanks!

    Hi Mate,
    Switches don't collect information on IP addresses plugged into a port. The only thing you can get is the MAC address of the device plugged into the port.
    Hope that helps - pls rate the post if it does.
    Paresh

  • Executing an hp unix command by using java code

    i'm trying to execut the "chmod" command on my jsp as follows :
    String cmd = "chmod 644 "+fileName;
    Process process;
    process=Runtime.getRuntime().exec(cmd);
    but i got the following exception:
    java.io.IOException: chmod: not found
         at java.lang.UNIXProcess.forkAndExec(Native Method)
         at java.lang.UNIXProcess.<init>(UNIXProcess.java:86)
         at java.lang.Runtime.execInternal(Native Method)
         at java.lang.Runtime.exec(Unknown Source)
         at java.lang.Runtime.exec(Unknown Source)
         at java.lang.Runtime.addShutdownHook(Unknown Source)
         at java.lang.Runtime.addShutdownHook(Unknown Source)
         at receiveJobAppInput.jspService(_receiveJobAppInput.java:358)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java, Compiled Code)
         at oracle.jsp.runtimev2.JspPageTable.compileAndServe(JspPageTable.java, Compiled Code)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java, Compiled Code)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java, Compiled Code)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java, Compiled Code)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled Code)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java, Compiled Code)
         at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java, Compiled Code)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java, Compiled Code)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java, Compiled Code)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java, Compiled Code)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java, Compiled Code)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java, Compiled Code)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java, Compiled Code)
         at java.lang.Thread.run(Unknown Source)
    can anyone give me a hint why this happend?

    What about exec'ing this?
    String [] {"chmod" ,"644" , "fileName" }

  • What program can I use to open BUP files?

    Hello,
    I downloaded several videos from my camcorder and they came over as BUP files? (also as IFO files and VOB files) What program,  if any, can i use to open them? Or what can I do to change them? thanks!!

    It's a project manager piece of software from OmniGroup.  They are coming out with an iPad version but not soon enough for my needs.

  • What app do I use to watch mp4 file on iPad?

    I used iTune on my MacBook Pro to copy an mp4 file onto iPad.  It seemed to have done so without complaint.  But I don't see the mp4 file from Music app on iPad.  What app am I supposed to use to view the mp4 file?

    Try free OPlayerHD Lite.
    https://itunes.apple.com/sg/app/oplayerhd-lite-best-free-video/id385896088?mt=8

  • What method shall i use to get a file?

    HELP!!!!
    what can i use to get a certain file or a log file
    example the log file is access_log, access_log.1 .......
    thanks in advance!

    CROSSPOSTING IS MADNESS...i tell u...for the love of god...it's MADNESS....................

  • When I open a link to a doc file, it opens in Microsoft Office 2010 as a .bmp file. I opened Firefox options to change what application should be used to open doc files, but it only gives me the option of the general Microsoft Office, not Microsoft Word.

    This did not happen on my laptop when I installed the Microsoft Office home & student edition, and my laptop also has Windows 7 and I use Firefox. Please help!

    Menu > File > Save As… > you get a wide choice of formats
    Are you using  Windows Word or Word for Mac?
    Peter

  • What dpi should I use when making a file for a HD (1920x1080px) in Photoshop??

    I am making a graphic for an HD (1920x1080px) in Photoshop and I wanted to know which dpi Should I use? 72dpi?100dpi?300dpi?
    I dont want this to bee seen bad in a big screen...=S
    Thanks in Advance,
    Orangejuice.-

    PPI only applies to print. Don't set it to anything.
    Photoshop defaults to 72 but the number is irrelevant for screen design.

  • What compression type to use for disk image files

    Hello all
    I was wondering if a more experienced user than me could give a recommendation as to which compression format I should use to compress an image I made of my / partition. I used dd to make the image file.
    For me, (de)compression time is more important than compression ratio (size), but I'm of course looking for a good blend of both
    Thanks for any advice

    If you have a multicore processor, use pigz instead of gzip etc. Start with this app and only after you're not happy with it, look for one that's faster / compresses better.
    BTW, do you have a lot of incompressible data in there? Movies, pics, music and already compressed files won't compress any more.
    Last edited by karol (2011-01-29 16:16:03)

  • What program should i use to open pdf files, documents for email attachments. Adobe is not working

    I can not open any email attachments-large or small. I had adobe and switched to internet explorer.  I do not have any other choices on my computer to pick from other than word pad and it opened the attachment but was not readable. 

    Please download and install the latest version of Acrobat Reader from the following weblink that will help you to open and read all the PDF files:
    http://get.adobe.com/reader/
    I am an HP employee.
    Regards,
    Vidya
    Make it easier for other people to find solutions, by marking my answer “Accept as Solution” if it solves your problem.
    ***Click on "Thumbs up" button to the bottom right side of my post to say thanks!***

Maybe you are looking for

  • Error 42003 when synching apps to iphone

    Aargh! I am trying to sync my songs on my iPhone 4, but I can't get past the apps sync. iTunes complains that "This computer is no longer authorized for apps that are installed on the iPhone 'My iPhone'. Would you like to authorize this computer for

  • How to call structure in query change mode

    Hi Gurus, How to call created structure in query change mode? Is there any other methods? Thanks in advance Ramu

  • Can IREP can be utlized to "DEPLOY" web services in 11.5.10

    Hi IREP is a wonderful repository of all service endpoints or say compilation of all integrations for Ebiz suite. From R12 onwards it even helps deploy web services. But I can't seem to understand how in R11.5.10 could IREP help to deploy a web servi

  • How to populate DUNS_NUMBER in AR through Customer Interface tables

    Hi, We are working on Customer Interface using custome Interface tables and run the standard Customer Interface program. As part of source data, we have data for D-U-N-S number, which should be populated to D-U-N-S number field displayed under Profil

  • Plnd order to production order

    Hi all, I executed a plng run in PPDS to cover independent requirements. From product view I accessed one of the plnd order and checked conversion indicator. I am trying to convert plnd order into prod order. I refreshed product view, but no new prod