0
votes
0answers
107 views

Configure L2TP IPSec on Mac using command line

I have a bunch of IPSec VPN servers I'd like to add on several mac clients ... is there a one-line I can execute from the console, or a simple way to do this in an automated fashion to save time? ...
2
votes
1answer
703 views

How can I tell if the lock screen is active from the command line on OS X?

I have a cron script that I want to run regularly if I am logged into my Mac. I don't want it to run if the Lock Screen is up. Is there a way to check from the command line / Terminal if the Lock ...
0
votes
1answer
118 views

Discrepancy in file size on disk and ls output

I have a script that checks for gzipped file sizes greater than 1MB and outputs files along with their sizes as a report. This is the code: myReport=`ls -ltrh "$somePath" | egrep '\.gz$' | awk ...
0
votes
3answers
710 views

Unzipping files using Shell Script

All, I have an app where user picks up a zipped folder which a shell script unzips and then renames for processing. The zipped folder will always have the following naming convention: ...
1
vote
0answers
1k views

Macintosh OS X Logout Script

I am working on a project where I need to implement a logout script on some Macintosh computers. I have read the following Create a logoff script/task for Mac OS X article and found that while it is ...
2
votes
1answer
954 views

Why won't my bash script work?

I'm getting more comfortable with the terminal in Mac OSX and I thought I'd have a dabble at bash scripting. Not wanting to crawl before I could sit down I wanted to write an incredibly simple "Hello, ...
0
votes
1answer
612 views

Mac - Run script on startup and another on shutdown

I'm trying to figure out how to get two shell scripts to run automatically. One script to run when the mac is turned on. And another to run when the computer is about to shut down. I'm guessing for ...
0
votes
1answer
1k views

Mac package postinstall script not running

I have created a installer from package maker and scripts I specified scripts directory and postinstall script. When I installs the package it application installs fine but the scripts I specified is ...
2
votes
4answers
1k views

How can I find the PID of a process using its command line arguments?

I'm using Mac OS X, which means I don't have (for example) pgrep/pkill, but I want something like that (I don't use macports/fink, either - homebrew is my Unix package tool of choice - so packages ...
1
vote
1answer
195 views

Automated Generating Of Sound Files for Individual Music Notes on a Mac

I have a specific task I want to accomplish...I am trying to figure out if there is an a way of doing this. Basically, for a project I am working on, I want to create sound files for individual music ...
0
votes
1answer
198 views

Setting “Open With” Metadata from a Bash script

I have a file whose extension is .log, though I have this particular file set to open in TextWrangler instead of Console.app (using "Open with" in Finder's Get Info panel). I have a Bash shell script ...
0
votes
1answer
412 views

Backup files to Windows share from Mac 10.3.9 schell script throws permission denied errors

So I have this script I'm working on to try and copy a couple files to a windows server as a backup. It appears as though I am able to mount the share well enough, however I seem to be unable to copy ...
0
votes
2answers
1k views

Run a script automatically when I'm connected to the internet on Mac [duplicate]

Possible Duplicate: Run script in OS X 10.6 on network connection. (like /etc/network/if-up.d/) I set up ssh tunnels so that I can access various computers at work through our gateway. The ...