• Mac OS X,  Ubuntu,  Unix

    FTP Command Line and Automation

    The ftp command that runs on a Mac is similar to that from any other platform, including Windows – and not much has changed with regard to FTP for a long, long time. When using FTP you will login to an FTP server, then issue some commands, one of which will kill your session to the host. The commands you issue during an FTP session are issued in an interactive mode of the shell, where you are actually running them against the target server ls – list the contents of a directory on the FTP server cd – change the working directory on the FTP server pwd – show the…

  • Mac OS X,  Mac OS X Server,  Unix

    The basics of cron

     The cron command has officially been deprecated in Mac OS X, but still functions if called upon. cron starts a process that executes commands at specified dates and times. Regularly scheduled commands can be specified according to instructions found in the crontab files in the directory /var/spool/cron/crontabs. Users can submit their own crontab files via the crontab command.  Crontab copies the specified file or standard input if no file is specified, into a directory that holds all users’ crontabs.  crontab options: The -e option edits a copy of the current users’ crontab file or creates an empty file to edit if crontab does not exist. The-r option removes a user’s…

  • Mac OS X,  Ubuntu,  Unix

    Working Directory

    When I say working directory I am referring to the current directory you are in when using a command prompt.  Just an FYI.  If you are ever unsure as to what your working directory is then you can use the pwd command to print it out to the screen.