[phpBB Debug] PHP Notice: in file /includes/db/dbal.php on line 110: Undefined array key "cached"
[phpBB Debug] PHP Notice: in file /includes/db/dbal.php on line 111: Undefined array key "normal"
[phpBB Debug] PHP Notice: in file /includes/db/dbal.php on line 112: Undefined array key "total"
[phpBB Debug] PHP Notice: in file /includes/session.php on line 885: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2922)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 885: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2922)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 885: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2922)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3391: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2922)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3393: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2922)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3394: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2922)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3395: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2922)
Cabrillo College Linux Classes • View topic - Tick marks

Tick marks

UNIX/Linux System Administration

Tick marks

Postby Tim Childers on Thu Dec 11, 2008 4:52 pm

Could someone explaine the tick marks again?

Example:/2 * * * * /sbin/dump 0uf /backup/full/backup-FULL-`date +\%Y-\%d-\%m`.dmp /home
Tim Childers
 
Posts: 57
Joined: Mon Oct 06, 2008 6:33 pm

Re: Tick marks

Postby Jonathan Simms on Fri Dec 12, 2008 1:21 am

The back quotes are a deprecated way of doing command substitution. Another way would be $([i]command[/i]) . Either way does the job.
Jonathan Simms
 
Posts: 119
Joined: Tue Sep 02, 2008 7:11 pm

Re: Tick marks

Postby keivn dodd on Fri Dec 12, 2008 8:30 am

\%Y-\%d-\ represents a directory and %m.dmp represents a file.
Y and d are variables. The variables are used to be able to run the command as part of a program or loop.

For example %Y could represent an array of home directorys
keivn dodd
 
Posts: 43
Joined: Sat Sep 13, 2008 2:30 am

Re: Tick marks

Postby Jonathan Simms on Fri Dec 12, 2008 12:20 pm

Kevin,

The %Y, %d, %m are all options to the date command they represent year, day, month, respectively. They can be demarcated by a handful of ASCII characters, these are listed in date(1). They have backlashes because they have been escaped.
Jonathan Simms
 
Posts: 119
Joined: Tue Sep 02, 2008 7:11 pm


Return to CIS 191B - Fall 2008

Who is online

Users browsing this forum: No registered users and 0 guests

cron