Best way to run script to copy files on login

I ran the following script last year for the purpoase of copying shortcuts (ex. college webmail, helpdesk, website) to the desktop. I had the shortcuts in a folder on an open share and on login the script would run and copy the shortcuts.
#bin/bash
mkdir /Volumes/scripts
mount -t afp afp://server/scripts /Volumes/scripts
cp -R /Volumes/scripts/desktop_shortcuts/* ~/Desktop
umount /Volumes/scripts
killall Terminal
This allowed me to add or adjust shortcuts so we would never need to handle adding these manually in the image or after lab deployment. Last year I added it to the "Login Itmes" for the user but this year I'd like to have it run from a server. I've had no luck getting this to wrok from a WGM Server or Profile Manager Server. I tried the "Login Hooks" from the serverside and no luck.
I can't seem to find a clear document that tells me what the proper scripting procedure is for Mavericks.
Some posts say used launchd, some say .plist & others applescript.

I ran the following script last year for the purpoase of copying shortcuts (ex. college webmail, helpdesk, website) to the desktop. I had the shortcuts in a folder on an open share and on login the script would run and copy the shortcuts.
#bin/bash
mkdir /Volumes/scripts
mount -t afp afp://server/scripts /Volumes/scripts
cp -R /Volumes/scripts/desktop_shortcuts/* ~/Desktop
umount /Volumes/scripts
killall Terminal
This allowed me to add or adjust shortcuts so we would never need to handle adding these manually in the image or after lab deployment. Last year I added it to the "Login Itmes" for the user but this year I'd like to have it run from a server. I've had no luck getting this to wrok from a WGM Server or Profile Manager Server. I tried the "Login Hooks" from the serverside and no luck.
I can't seem to find a clear document that tells me what the proper scripting procedure is for Mavericks.
Some posts say used launchd, some say .plist & others applescript.

Similar Messages

  • What is the best way to run .exe files on my mac?

    What is the best way to run .exe files on my mac? I need to run some updates for my john deere gps and the downloads i get can only be run on windows.

    There are several options for running Windows software (*.exe files) on a Mac, depending what your program is, how often you use it, and your personal preferences.
    One way that does not require Windows is an open source effort called WINE.  Check out winehq.org.  You may find that that's all you need for your programs.  There is also a commercial effort that has grown from WINE, and you will find info about it on the site mentioned.  These DO NOT require that you have and install Windows.
    If you want to run sessions devoted only to Windows software, and want programs to run as fast as they do on a PC, the Apple's Bootcamp program is useful.  With it you dedicate a partition on your hard disk to windows, and on startup choose to either boot into OS X or Windows.  Each runs without any connection to the other.  This requires you have a copy of the Windows software as well as the applications you want to run. 
    If you want to be able to easily exchange data between your Windows and Mac programs, and skip back and forth between the two, there are several emulators available that run on Mac OS X and create a Windows environment where many Windows programs can operate along side Mac programs.  Parallels and VMwear are two comercial packages available for purchase and Virtual Box is an open source effort available for free.  Google will find all three for you.
    My only experience is with Virtual Box.  It is slow and a bit clunky, but it is free and meets my needs for the very few "just got to have" windows programs I sometimes use.
    Google is your friend on this and can provide a lot more, and better, information than I can.
    Best of luck,
    Ray

  • Best way to run open source/GNU programs on Mac

    Hi folks,
    I'm kind of new to Macs, coming from the linux/unix world.   I'm working on reinstalling the OS on my macbook (after finding out the hard way that it itsn't prudent to use a case-sensitive file system on a Mac), and thought this would be a good time to ask if anyone has an opinion on the best way to run linux-y programs on a Mac.   For instance, I find myself wanting to use "zim" and keep it synchronized with my linux computers, but I can't get it to install on my mac.   I can see a few options:
    1) run linux in a virtual machine, but this is a problem since I only have 4 GB of memory.
    2) use mac ports, but most of the ports I tried in the past didn't work, and my questions to the community were ignored (I tried to be friendly, but perhaps I came across wrong...?)
    3) use fink, but I gather it is out of date and not really used any more.
    So, I'm curious what other people use if they want to use open source programs?   Ideally I wouldn't have to compile each program myself, but maybe that is the best option?
    Thanks.

    I think Fink has install binaries (and if it has a ZIM port that works for you, what do you care if Fink is a bit out-of-date as a package manager?).
    From my observations of MacPorts.com, it compiles the ported package on your system (so you need to have XCode (free from Mac App Store) installed on your system.  If MacPorts has a binary option, I have not dug deep enough to find it (as I mostly use the minimum to get something I want installed).
    The other option is to download the Open Source package and build it yourself.  There are some that think this is the ONLY way to go about it (me I'm lazy and only do that for Vim which I desire specific options not always included in canned Vim packages).
    If you want OpenZIM on your Mac and you only use it once in a while, then a virtual machine might be the way to go.  However, if your use of OpenZIM is extensive, then a virtual machine can be a bit heavy weight, adn for that you might want to either find a working port or build it yourself.
    Whatever you do, DO NOT replace a standard Mac OS X installed Unix side program with your own.  Put your stuff in /usr/local/bin, or a personal local tree (Fink uses /sw/... and MacPorts uses /opt/local/...), then modify PATH in your shell initialization file.  Replacing standard Mac OS X Unix programs may break Mac OS X maintenance scripts, GUI programs that get an assist from a Unix command, etc...
    NOTE:  Chances are you Mac can go up to at least 8GB of RAM, and if you look at Crucial.com you might find it will not cost you much at all (for example, the MacBook Pro I just got was upgraded from 4GB to 8GB for only $43).  With 8GB of RAM you will not notice that you have a virtual machine locking down 2GB.  Also I'm not telling you to spend money, just pointing out possible options should you find your need for OpenZIM demands the use of a virtual machine.
    With respect to a case sensitive file syste, if you need one, then create a partition (or perhaps a disk image (.dmg) via Applications -> Utilities -> Disk Utility) for that purpose (an external disk is also an option).  But as you have discovered Mac OS X and many of its GUI applications have assumptions based on a case-insensitive file system.

  • What is the best way to export a .csv/.txt file to a MS Windows shared folder via a scheduled job?

    What is the best way to export a .csv/.txt file to a MS Windows shared folder, when the export process is a scheduled job?

    You can't directly, as scheduled jobs can only export to server-side data stores, which can only write to the landing area. You'll need to use an external script (e.g. batch file) to move the file from the landingarea after export. You can use an external task in the scheduled job to invoke the script.
    regards,
    Nick

  • What's the best way to run Logic Pro from external hard drive.

    What's the best way to run logic from external hard drive

    Hi
    Organism wrote:
    Logic is designed to run from your Applications folder. I suspect if Logic was moved to an external drive, it might not be able to locate its assets, like loops and libraries.
    As long the necessary files are in the correct places on the boot disc, you can run the Logic application itself fom wherever you like. It would not be recommended however, and there would be very little benefit (if any) in doing so.
    CCT

  • What is the best way to run windows on my mac?

    What is the best way to run windows on my mac?
    I have a particular program that i need to run, and it only runs on windows. I have a macbook pro

    As Templeton noted, it depends and will at least be somewhat subjective. 
    There are basically three options out there.  You can use a Windows emulator (Wine or the commercial version of it, Crossover Office), use Boot Camp to "dual boot" or use virtualization software (Parallels, VMWare Fusion, or VirtualBox).  Each has its advantages or disadvantages.
    The Windows emulators have the advantage of being the one option that doesn't need the purchase of a copy of Windows.  Unlike Boot Camp, but like the virtualization options, this allows you to run Windows programs and OSX programs side by side.  The big problem, though, is that it is the least compatible option--a lot of Windows software either has "issues" or will not function at all.  The Crossover website has information on which programs are known to work and how well they are known to work. 
    Boot Camp is the option that Apple ships OSX with.  You'll need a copy of Windows to install into the partition.  You'll effectively divide your disk into two parts and have two machines.  The major advantages are, first, you don't need to acquire separate software *AND* the Windows license.  As well, it's the highest performance Windows system.  What you have is truly a Windows machine.  That's both the good and the bad--you aren't going to be able to use OSX software at the same time, and you have to reboot to get back to OSX.  I've always thought it was best for someone who likes the Apple hardware and wants to use it for a Windows box--in that case Boot Camp is clearly a great solution.
    Finally there's virtualization which seems to be the most popular way to handle Windows, especially if you need to run one vertical market package.  It has the advantage of allowing you to use your OSX software at the same time, and the virtualization gives an extremely high level of compatibility.  About the only thing that won't run is a virtualization package (and there's not a lot of reason to run that in a Windows VM).  There is a performance hit compared to Boot Camp, but it's minimal for all but the most demanding applications (that being high end games). 
    It will chew up RAM on the OSX machine, but if you have at least 4 GB of RAM it will probably be manageable, especially if you only need to run one Windows program.
    You will need both a virtualization program (there are three major ones) and purchase Windows.  Two of three programs are commercial packages (Parallels and VMWare Fusion), while the other is an open source option (VirtualBox).  Virtual Box has the advantage of being free, but it's by far the least polished of the group.
    Which way is best?  As was noted, it depends.  I run VMWare Fusion on my machines, and I have used CrossOver Office for limited purposes.  I've not yet seen, in my use pattern, a reason to go to Boot Camp but I certainly can see cases where it might make sense.

  • Logon Scripts for copying files in Windows 7

    Issues using Logon scripts to copy files in windows 7.  Its default is to append the file rather than copy and replace, which is what XP did.  How can I achieve the same results using
    logon scripts in W7 to copy any files to specified folders and replacing old files.  The reason for this is that we use a software that performs offsite/onsite updates and the only way all the users can have the correct version/tables is to either manually
    update each user in a 90+ user environment or use a logon script to perform the coping of the updates.  Unfortunately the software support won’t create a (while logging in to software) patch for this.  So we have to force it during the user logon.

    Hi Novice,
    It should depend on your script content. it's recommended you ask in the official scripting guys forum for professional help:
    https://social.technet.microsoft.com/Forums/scriptcenter/en-US/home?forum=ITCG
    Karen Hu
    TechNet Community Support

  • What is the best way to run Sage on a MacBook Pro?

    What is the best way to run Sage on a MacBook Pro?  I am a first time Apple user.

    There's a lot of Sage out thete so fill us in with information. If it runs on Windows then you'll need to create a partition on your mbp using boot camp and install Windows. So what is Sage for you?

  • Best ways to view/display PDF/Excel files stored in the Database

    What are best ways to display/view PDF/Excel files stored in the Database? thanks L

    Thanks tom, sorry let me explain. Currently we have oracle forms screen, using webutil to store/view files into DB. client won't like the interface, they want us to make it more friendly, drag and drop if possible, load multiple files, as possible.. So I am exploring different ways to improve may be java (or jdev/any any other), different screen designs, different features for fileupload/download/view options.

  • What is the best way to run windows on my Mac? And What are the pitfalls I should watch for?

    What is the best way to run windows on my Mac?   What are the pitfalls/

    If you need Windows as your main operating system you would be better off buying a Real Windows PC.
    Running windows on a Mac is always a compromise. Whether in a Boot Camp partition or in a Virtual Machine.
    In boot camp you can't easily Re-Partition and or Re-Size the drive it is installed on. You can't use both graphics cards as Apple has limited Windows to use the discrete graphics only, that is if your mac has 2 graphics cards (15" MBPs), which will shorten the battery run time in Windows.
    The trackpad only has limited functions in Windows, less then is available on the Mac side and a real Windows PC.

  • What's the best way to master an MPEG 2 file for DVD Studio Pro.

    In version 4.5 of FCP I was able to use QuickTime conversion to encode to MPEG2. Now that option is not there. I hate using compressor 2 to create MPEG 2 because when I do the MPEG 2 files always seem to studder and I don't know why. I shot my project in HDV. It is about 64 minutes long. Any suggestions on the BEST way to master an MPEG 2 file for DVD Studio pro? Thanks in advance!
    Peter
    PS - I'm using FCP 5

    Some people have reported a field reversal problem with HDV to SD DVD encodes. There's an Apple technical document on this issue somewhere, but the problem was supposed to be addressed by a Pro Applications update a couple of years ago... This site might help you get to the bottom of the problem.
    http://www3.telus.net/bonsai/Step-by-Step.html

  • Best way to view and edit OpenOffice files on my new iPad Mini (originally Word and Excel files). Thanks!

    Can someone tell me the best way to view and edit OpenOffice files on my new iPad Mini (originally Word and Excel files)? Thanks!

    wmf files is a MS Windows video file, you will need a tool to covert the wmf files to another file format OS X will read. Simply Google to find a converter you are interested in and use it.

  • Windows Scripting to copy files

    Hi there,
    New to Windows scripting. 
    I have tried to create a simple script to copy file but failed. Most probably the syntax is wrong. Pls help. thanks.
    I give you my code below:
    @ECHO OFF
    SETLOCAL
    REM SET INDIR="\\sge-fs01\enablers_development\ptc\OUTGOING"
    SET SLIFTCMD="C:\Program Files\PrivyLink\SLIFT-Ez Classic\1.4\SLIFTC.exe"
    SET PFX="C:\PrivyLink\KeyPeer\111111.pfx"
    SET PFXPWD="pass12345"
    SET CER="C:\PrivyLink\KeyPeer\sgesftpuser.cer"
    SET PATTERN="*.IN"
    SET DSTDIR="C:\SFTP\OUTBOUND"
    SET BKDIR="C:\SFTP\BACKUP"
    SET SENDDIR="C:\SFTP\SENDTO"
    SET INDIR="C:\SFTP\PTC\OUTGOING"
    REM ####### MAIN CALL #########
    CALL:MainScript
    GOTO :EOF
    REM ####### Check Files in PTC OUTGOING #########
    :MainScript
    SETLOCAL
    @ECHO OFF
    PUSHD %INDIR%
    IF EXIST "C:\SFTP\PTC\OUTGOING\*.IN"
    COPY "C:\SFTP\PTC\OUTGOING\*.IN" %DSTDIR%
    ELSE 
    echo "There are no files today - %date:~-4,4%%date:~-7,2%%date:~-10,2%" >> C:\SFTP\PTC.log
    pushd %~dp0
    start "" cmd /c cscript SMTP.vbs
    POPD
    ENDLOCAL
    GOTO :EOF
    REM ####  END ########

    I tried myself and it works now. 
    EXISTS can use wildcard (no problem with that). Just that my brackets were not in right position.
    They should be like this:
    IF EXIST "C:\SFTP\PTC\OUTGOING\*.IN" (   
                                    COPY %INDIR%"\*.IN" %DSTDIR%
                                    REM COPY "C:\SFTP\PTC\OUTGOING\*.IN" %DSTDIR%
                                    REM CALL :ENCRYPT
                    ) ELSE (
                                    echo "There are no files today - %date:~-4,4%%date:~-7,2%%date:~-10,2%" >> C:\SFTP\PTC.log
                                    pushd %~dp0
                                    start "" cmd /c cscript SMTP.vbs

  • What's the best way to run FrameMaker 8 on a Mac?

    What's my best bet for running FrameMaker 8 on a MacBook Macintosh laptop?
    Can I run FM 8 directly under OS X, since it's a Unix app? Any special tricks to making it go?
    Or will I need to run FM 8 under Linux or Windows? If so, I'll need to be able to copy and paste from one environment to the other. What are my options? Their pros and cons?
    I'm switching from a PowerBook to a MacBook so I can run MacSpeech Dictate dictation software. Dictate ONLY runs on Intel Macs.
    I currently use FrameMaker+SGML 6.0 in Classic. It CAN'T run on the Intel Macs.
    I have over half a million words of FrameMaker files, including 7 volumes of cross-referenced research notes I add to almost daily. Since I am heavily dependent on FrameMaker's features, it's a must-have.
    I haven't bought the MacBook yet, so if there are any hardware requirements I need to know about, or options I should consider or avoid, please let me know.

    > If I understood him correctly, the Adobe salesperson I talked to
    > yesterday runs the Unix version of FrameMaker directly under OS X
    There is NO way to get the Unix (=Solaris) version of FM 8 to run
    under OS X. It's an executable compiled for the SPARC processor,
    and I don't think Apple has made a SPARC/Solaris emulator... :-)
    /Thomas Michanek

  • Best way to access my mac G4 files when working on a windows pc laptop

    Hi - I'm looking for ideas on the best way to access files stored on my G4 mac, when working on a pc laptop elsewhere in the house.
    I'm not sure if this involves setting up a network, or whether I should be looking at ftp or even bluetooth.
    Just to explain what I'm after: I'm writing a book, primarily on my g4 (running panther) in my study. But I spend a large proportion of my day running after my rampaging toddler. I'd like to make better use of my time by being able to grab my partner's laptop and write while my toddler is occupied for twenty minutes.
    Messing around with a memory stick etc would just take too long as I'd have to remember to update the main file. It would get very messy!
    I hope someone can help!
    Thanks, Tina
    Message was edited by: tinaMac

    Between the networking question(s) to connect the two different platform
    computers, using Sharing and other settings in each, the next question is
    about the software used in the documents you are to be creating in one
    and sending to the other.
    Do you have a similar word processing software for the PC as in the Mac;
    or something compatible in creating and using .RTF documents, etc. Or,
    if you have a Windows version of AppleWorks, that would work. And the
    TextEdit in your OS X can handle rich text format word processing; and
    probably open basic text from a PC fairly easy. (And Word, etc, can.)
    Issues in sharing, are such that you have to be careful when changing the
    settings in your computers, that you don't accidentally share your computer
    contents with other persons and computers in the vicinity. By wire would be
    the most secure, since Ethernet can be used locally to share.
    Internet and wireless may be a possibility, too; or using a local shared external
    drives, if visible to both computers, depending on the network setup.
    Do you have a USB hard disk drive set up on your wireless network, and
    formatted in Fat32 so the Mac and PC can both see and use it? If so, you
    may be able to send documents to there from the PC and use them in the
    Mac. This may work, and depending on how the files were organized, not
    too hard to keep up with the draft copies generated from the PC for use in
    the Mac at a later time, and so on. This way, both computers would not
    need to be on, to send & receive a file...
    {For that matter, using a Google Account could be helpful;
    to just email the writing to yourself, at any computer.}
    Anyway, there are several possibilities, including those in the link to another
    discussion on that topic per the above post.
    Good luck & happy computing!

Maybe you are looking for

  • Permitted Payee

    Hi I want to create a vendor master with permitted payee..I am tring to find the field in Idoc for permitted payee but there is no field for permitted payee.I dont think we can do using an Idoc extension in this case.Is there any BAPI to create a ven

  • A help on triggers

    Hi all, I have a doubt with triggers. my synario is, I have to make 2 insets and a select(one after the other continuously). One of the two insert statements will fire a Trigger(AFTER INSERT Trigger) and do some manipulations on data.After this I use

  • Multiple, synced windows in the same video.

    I want to do something similar to the screen grab below with my music students.  Is it possible in iMovie to have multiple windows playing at the same time in the same movie?  I would need to sync them up with an audio recording we are going to do. 

  • What exactly is this OST file?

    Hi, I have started using Outlook recently and so, I want to know each and every information relevant to it. I was wondering that what this OST fle this. Please help me out in knowing what is OST file and also guide me to create one. Thanks in advance

  • How to uninstall portal from windows machine?

    Hi gurus, Can u guid me how to uninstall portal from windows machine. Also please tell me the installation document procedure or document. Regards, Shivraj Chalke