We can access parameters passed via the command line in our PHP shell scripts. Those are stored as an array in the variable $argv. Consider this: #!/usr/bin/php <?php echo var_dump($argv); echo...
Learn MoreIf you’ve ever tried to decompress a file that ends in tar.bz2 using the tar command, you’ll have noticed that it doesn’t work. That’s because the tar command does not understand the...
Learn Morecreate a shortcut for your app somewhere right-click on the shortcut and head over to the Shortcut tab under Target, add your argument(s) after the closing quote hit OK, then double-click the shortcut...
Learn MoreI’m working on a handful of servers that all have the same problem: when running yum, an error message appears that tells me a package called ntpupdate needs to be upgraded, but somehow this...
Learn MoreUnmounting external drives on a Mac is usually done quick and simple by either dragging drive icon to the trash, or by using the eject symbol in a Finder window. Mounting usually happens automatically when a...
Learn MoreThe other day I tried to format a USB drive for use with Windows. I had previously tried this on my Mac to no avail. But now even Windows was telling me that it too could not format my drive. I was stumped! I...
Learn More