Sponsored Content
Top Forums UNIX for Dummies Questions & Answers What Makes an App the System Default? Post 302770482 by sudon't on Saturday 16th of February 2013 12:27:44 PM
Old 02-16-2013
Apple

Quote:
I notice with satisfaction you still tenaciously learn UNIX despite my efforts to let the subject look boring and hard to grasp - good!
What? Unix is great fun! I just can't get anyone else to agree.
Quote:
I don't know Macs version of UNIX at all...
I am told it's mostly like FreeBSD.
Quote:
Code:
ln -s /opt/local/bin/ruby1.9 /usr/bin/ruby

Well, we want ruby1.9 as the target file, right? Shouldn't it be the opposite?
Here's a couple thoughts I've had:
Will it break anything if I simply change the names? Change ruby to ruby1.8, and change ruby1.9 to ruby? I guess it would likely break ports.
Or what if I invoked gem1.9 to install the script? Actually, let me try that.
Code:
$ sudo gem1.9 install scrabble-solver
Password:
Fetching: scrabble-solver-0.2.gem (100%)
Successfully installed scrabble-solver-0.2
1 gem installed
Installing ri documentation for scrabble-solver-0.2...
Installing RDoc documentation for scrabble-solver-0.2...

Two heads are better than one! It never occurred to me that the names were the problem. I wonder why they attached the version number to the filename in this case?
Well ok, enough of that. I'll no doubt be back once I've had a chance to look closely at this scrabble-solver script. It doesn't look much like a ksh script, but I can already see it looks in the wrong place for the dictionary.

Last edited by sudon't; 02-16-2013 at 01:30 PM.. Reason: new thought
 

3 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Loading App as the System starts

Hi Folks! I am a Mac OS X user, and have written an Applescript application that I would like it to be run before the user logs in. I have tryed leaving the Mac on the "Login Screen", that screen just before you log in typing name and password, and logging using ssh from another Mac on the... (0 Replies)
Discussion started by: fundidor
0 Replies

2. UNIX for Dummies Questions & Answers

chmod ug-s /System/Library/CoreServices/RemoteManagement/ARDAgent.app/.... NOT PERMITTED

After much reflecting I decided that I don't want to have a remote managemente in my computer and I digited in Terminal from the Administrator Account: chmod ug-s /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/MacOS/ARDAgent But the answer is: NOT PERMITTED Why? Is it not... (6 Replies)
Discussion started by: Vera
6 Replies

3. Programming

Wuhan Coronavirus Status App for China - Rapid Prototype using MQTT and the IoT OnOff IOS App

With a little bit of work, was able to build a nice "Wuhan Coronavirus Status" app using MQTT and the IoT-OnOff app. More on this technique here: ESP32 (ESP-WROOM-32) as an MQTT Client Subscribed to Linux Server Load Average Messages The result turned out nice, I think. I like the look and... (10 Replies)
Discussion started by: Neo
10 Replies
softwareupdate(8)					    BSD System Manager's Manual 					 softwareupdate(8)

NAME
softwareupdate -- system software update tool SYNOPSIS
softwareupdate command [args ...] DESCRIPTION
Software Update checks for new and updated versions of your software based on information about your computer and current software. Invoke softwareupdate by specifying a command followed by zero or more args. softwareupdate requires admin authentication for all commands except --list. If you run softwareupdate as a normal admin user, you will be prompted for a password where required. Alternatively, you can run softwareupdate as root and avoid all further authentication prompts. The following commands are available: -l | --list List all available updates. -i | --install Each update specified by args is downloaded and installed. args can be one of the following: -r | --recommended All updates that are recommended for your system. These are prefixed with a * character in the --list output. -R | --restart Automatically restart (or shut down) if required to complete installation. -a | --all All updates that are applicable to your system, including those non-recommended ones, which are prefixed with a - character in the --list output. (Non-recommended updates are uncommon in any case.) item ... One or more specified updates. The --list output shows the item names you can specify here, prefixed by the * or - characters. See EXAMPLES. -d | --download Each update specified by args is downloaded but not installed. The values of args are the same as for the --install command. Updates downloaded with --download can be subsequently installed with --install, or through the App Store (as long as they remain applicable to your system). Updates are downloaded to /Library/Updates, but are not designed to be installed by double-clicking the packages in that directory: always use --install or the App Store to actually perform the install. --ignore identifier ... Manages the per-machine list of ignored updates. The identifier is the first part of the item name (before the dash and version number) that is shown by --list. See EXAMPLES. --reset-ignored Clears the per-machine list of ignored updates. --schedule on | off Manages the per-machine automatic (background) check preference. -h | --help Print command usage. EXAMPLES
The following examples are shown as given to the shell: softwareupdate --list Software Update Tool Finding available software Software Update found the following new or updated software: * MacBookAirEFIUpdate2.4-2.4 MacBook Air EFI Firmware Update (2.4), 3817K [recommended] [restart] * ProAppsQTCodecs-1.0 ProApps QuickTime codecs (1.0), 968K [recommended] * JavaForOSX-1.0 Java for OS X 2012-005 (1.0), 65288K [recommended] sudo softwareupdate --install JavaForOSX-1.0 Software Update Tool Finding available software Downloading Java for OS X 2012-005 Downloaded Java for OS X 2012-005 Installing Java for OS X 2012-005 Done with Java for OS X 2012-005 Done. sudo softwareupdate --ignore JavaForOSX Ignored updates: (JavaForOSX) sudo softwareupdate --schedule Automatic check is on Mac OS September 11, 2012 Mac OS
All times are GMT -4. The time now is 10:03 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy