Industry expert Dave Taylor offers tech support on technical and business topics, including iPhone, iPod, Microsoft Windows, Sony PSP, cellphones, online advertising, CSS, Web design, business, Unix, Linux, SEO, Mac OS X, and shell script programming.     


unix

Secretly capture screenshots on my Mac?

When I used to work on a Linux system, there was a utility we had that would let me take screen captures every 30 seconds while my computer was otherwise unattended, as a way to see if anyone else was using it or not. I liked it. Now I'd like to do the same on my Mac system. Possible?

Question answered on April 16, 2012 at 08:09 AM :: Comments to date: 0

Mac "item in use" error when installing a new app?

Category: Mac OS X Help

I'm confused: on my Mac when I go to install new software sometimes I just drag and drop it and everything's fine, but other times I get "item in use" errors and have to reboot before I can install the new app. What's up with that?

Question answered on November 18, 2010 at 08:29 AM :: Comments to date: 0

Review: iSSH for the iPad/iPhone

If you're running an online business like I am, there are times when you need to connect and log in to the server to tweak or check things. It can't be helped and while the Cpanel solution and related are often splendid, sometimes I just like to get bits all over my hands as I "go old school" on my server and use a command line.

In those instances there's a nice solution on the Mac called "Terminal", included with Mac OS X, and there's a rudimentary terminal window app for Windows too, but once you move onto mobile devices of any nature, nothing's available.

That's why I was so interested in iSSH [iTunes link], a low-cost iPad application that lets me connect directly to my Web server via a secure, encrypted connection (SSH = secure shell, it's the secure alternative to "telnet') from my iPad and, in case of a crisis, even my iPhone.

Question answered on September 2, 2010 at 08:31 AM :: Comments to date: 8

What version of Linux am I running?

I have a Virtual Private Server or a dedicated server running Linux, but I'm not sure which version of Linux (Fedora, CentOS, Debian, etc.) the server is running. How do I find out?

Question answered on December 11, 2009 at 08:33 AM :: Comments to date: 2

How do I set my Terminal / shell PS1 prompt?

Category: Mac OS X Help

I have Mac OS X 10.5.8. When I try to change my unix shell prompt by putting the line:

  export PS1='mac> '

into my .bash_profile, the prompt is changed but the cursor is in the first column (over the "m" of my prompt) and any typing overwrites the prompt.

Question answered on October 9, 2009 at 08:47 AM :: Comments to date: 5

How can I convert map addresses into latitude longitude?

I'm trying to write a shell script that will accept a street address and output the latitude and longitude of that address, for geocache purposes. How can I do that?

Question answered on April 18, 2009 at 09:15 AM :: Comments to date: 3

How do I install Ubuntu Linux on a Netbook?

I just bought a slick ASUS Eee PC netbook, model 1000HA, and want to configure it to work with both Microsoft Windows XP, which is already installed, and Ubuntu or some other flavor of Linux. How can I do that without having to reinstall WinXP?

Question answered on December 27, 2008 at 08:22 AM :: Comments to date: 28

How do I install Apple Developer Tools on my Mac?

Category: Mac OS X Help

I seem to recall a long time ago that when you installed Mac OS X you also got a bunch of cool Unix command line developer tools, including a C compiler, debugging tools and much more. I'm taking a C programming class at the local community college and would like to install these tools, but have no idea where they are any more. Help?

Question answered on March 1, 2008 at 08:57 AM :: Comments to date: 6

How do I step through numeric values in a shell script?

Please, gimme a advice how to correctly use loop "for i in `seq 1 10`" for Mac OS X, echo $SHELL->/bin/bash, because when I write simple strip: for i in `seq 1 10`;do echo $i;done it outputs -bash: seq: command not found.

Question answered on December 31, 2007 at 08:00 AM :: Comments to date: 4

What does the $( ) notation mean in a Bash script?

On page 329 (Hour 16) of your book Teach Yourself Unix in 24 Hours is the example:

value=3 ; string="my horse Horace"
test $value < $(echo $string | wc –c)
test `wc –l filename` -ge 10000

If I try this with this code:
#!/bin/sh/
value=3;string="my horse Horace"
test $value < $(echo $string | wc -c)
test `wc -l ched4` -ge 10000

I get:-
syntax error at line 3: `(' unexpected

Are you able to quickly explain what the line test $value < $(echo $string | wc -c) is actually trying to do? I don’t quite understand the $(…) part … and is the < performing a ‘redirection for input’ or is it meant to be ‘less than’?

Question answered on November 9, 2007 at 07:04 AM :: Comments to date: 2

How do I change my PS1 command prompt in Bash?

I have read about 15 chapters of your book (Teach Yourself UNIX in 24 Hours) so far. We are using vi. On the PS1 command, how do I see what is in it so I can add to it and not change what is already there? We are using bash. What I see now is: ctdaywbsdv:/u/gwilki$

When I enter ‘echo $PS1’ I get: $ \[\e[0m\]

How do I keep the above and add the histcmd option? What does the \e and 0m\ mean? What do the [] the square brackets mean? I can’t find a man page for PS1. How do I find the rest of the options for this PS1?

Question answered on July 6, 2007 at 07:39 AM :: Comments to date: 1

How do I get "vi" shell edit mode in Mac OS X Terminal?

I just finished Learning Unix for Mac OS X Tiger, and think it is an excellent little resource. I'm recently out of school, a school where we weren't taught anything about Unix, just enough to get by. I started work with the data converter team at Agilent labs, and have been able to glean quite a bit off of them (considering many of them were either directly or indirectly responsible for writing many of them commands in common use today). Thus, I'm often embarrassed to ask them questions about exactly some of the stuff you cover in the book.

Okay, now for the question: at work, they have the terminal set up such that the command line works like vi. That is, if I want to search my command history, I simply change mode via escape, type /pattern_to_be_searched, it finds the command, and then I can use other vi commands to change the command a little bit, and then execute it via the shell. How do I set this up in OS X?

Question answered on November 5, 2006 at 12:03 PM :: Comments to date: 3

How can my shell script test to see if it's already running?

I have a script that does an ftp from a SCO UNIX server to windows server to get files from the windows server. The script is set in the cron to run every xx minutes. Sometimes the script will hang and leave a process running. This can bog down the UNIX server. I want to be able to do two things. 1. I want to make sure that the script doesn't hang - so it should terminate after xx minutes (the files are very small that it is getting). And 2. I want the script to test to make sure that it is not already running, before starting again. THANKS

Question answered on October 27, 2006 at 07:42 AM :: Comments to date: 5

String comparisons don't work in shell scripts?

I'm a bit baffled. I'm trying to compare string variables in a shell script to figure out if one value is lexically less (that is, would appear earlier in the dictionary) than another, but it doesn't seem to work at all? Help!

Question answered on January 24, 2006 at 09:53 PM :: Comments to date: 3

How can I run an app if another app is running?

I need to run a Unix application if a different application is running, from within a shell script. How do I do this?

Question answered on January 9, 2006 at 11:16 AM :: Comments to date: 2
1


Search
Need Help? Ask Dave Taylor!
Free Updates Via Email!
Sign up and get free tech support and special offers on books, seminars, workshops and more.

Archives by Category
Apple iPad Help
Review: Running with Friends
Review: The World Ends With You: Solo Remix
Closed captioning for TV shows and movies on my iPhone?


Articles and Reviews
Review: The World Ends With You: Solo Remix
Review: Verticus for iPad
Review: Clear Spot Voyager 4G wifi hotspot


Auctions and Online Shopping
Best place to buy a cheap MacBook laptop?
How can I sell a used gadget on Amazon.com?
How do I return something to Amazon.com?


Blogs and Blogging
Quickest way to back up my Wordpress blog?
How do I update my Wordpress plugins?
Google Slides and YouTube Unlisted Videos for Content Creators


Building Web Site Traffic
Fix Bad Site Links with Google Webmaster Tools?
How do I add a sponsor to a meetup.com group?
Give someone access to my Google Analytics account?


Business and Management
Set up a toll free number for my business?
How do I trademark my group's name?
Export LinkedIn Profile as a PDF Resume?


Computer and Internet Basics
Delete undeliverable email addresses from Aweber list?
How do I blur my house on Google Maps Street View?
Create a custom vanity URL for Kickstarter?


d) None of the Above
What's a "pump and dump" OTCBB stock?
What's the most popular Halloween candy?
Review: Sony NEX-5N Digital Camera


Facebook Help
How can I identify a Facebook photograph?
How do you share an iPhone photo on Facebook?
How can I block event invites on Facebook?


Google Gmail Help
Multiple signatures in Google Gmail on my Mac system?
Can I delete individual messages in a Gmail thread?
How do I forward a Gmail mail message?


Google Plus Help
Can I Enhance My Google Plus Photos?
How do I force Google Plus to have a one-column newsfeed?
How do I block Google Plus posting notifications?


HTML, JavaScript and Web Site Programming
Create a "Follow Me on Kickstarter" button?
How to Create Predefined Google Image Search Links?
Can I embed a Facebook search box on my blog site?


Industry News and Trade Shows
CES ShowStoppers Launch.it pitch event
What is Ultra HD TV?
CES 2013: Early Coverage from Startup Debut


iPhone and Cell Phone Help
Unblock number on AT&T SmartLimits Parental Controls?
Review: Running with Friends
How do I turn off autocorrect on my iPhone 5?


iPod, Sony PSP and MP3 Player Help
Getting Started with your new Apple iPod
Deleted iTunes library but still have tracks on iPod...
How do I fix the time / date on my Apple iPod Touch?


Kindle Fire Help
How do I buy a book on my Kindle Fire?
Forgot Kindle Parental Controls Password. Now what?
Turn a Kindle Fire HD into an ebook-only reader?


Mac OS X Help
Mac Calendar Alarm Reminders After Event?
Convert FLAC audio files to MP3 tracks on my Mac?
Audacity can't find LAME library, I can't save Mp3?


Pay Per Click (PPC) Advertising
Is paying for visitors to my site against AdSense policy?
How much money should I be making with AdSense?
Add Po.st Social Media (Facebook, Google Plus) widgets to your blog?


Pinterest Help
How do I pin an iPhone photo onto Pinterest?
Quickly Create a New Pinterest Board?
Convert a public Pinterest board into a private or secret board?


Search Engine Optimization (SEO)
How to SEO optimize YouTube videos?
How do I restructure my Wordpress blog without losing SEO?
Change in Web site navigation drops PageRank to zero?


Shell Script Programming
Stealth image capture photo from webcam on my Mac?
Secretly capture screenshots on my Mac?
Parsing "id" strings in a Shell Script?


Tech Support Video Help
Roundup of Cool iPhone 5 Cases
Review: Microsoft Surface RT, Acer Iconia W5
Review: Forus U2 Smartphone / iPhone call recorder


The Writing Business
Protect unpublished book manuscript during review process?
What's the best option for self-publishing my book?
How do I get into online writing?


Twitter, LinkedIn and Social Network Help
How do I add a sponsor to a meetup.com group?
How do I search for a job on LinkedIn?
Add a header graphic to my Twitter profile?


Unix and Linux Help
Install Ubuntu Linux within Parallels Desktop on Mac?
Copy and Paste from the Mac OS X Command Line?
Shell script to convert lowercase to title case?


Video Game Tips and Help
Review: Running with Friends
Review: Vector HD for iOS
Review: Temple Run 2


Windows PC Help
Enable ASP.NET on my Windows 8 system?
Audacity can't find LAME library, I can't save Mp3?
What's the easiest way to speed up my Windows PC laptop?




Find Me on Google+
"Ask Dave Taylor®" is a registered trademark of Intuitive Systems, LLC.