Showing posts with label ubyntu. Show all posts
Showing posts with label ubyntu. Show all posts

Friday, December 31, 2010

% in crontab

if you would like to use construction like this `date '+%a'` in crontab, you need to backslash the % sign.

1 1 * * * touch /tmp/`date '+\%a'`.touch

It works in Linux but in Solaris does not. It creates file names where is a slash before a week name.

In Solaris the ' sign should not be used.

1 1 * * * touch /tmp/`date +\%a`.touch

W: GPG error: http://ppa.launchpad.net maverick Release: The following signatures couldn't be verified because the public key is not available:

After some paranoiac permission setting in my home folder I wanted to update repository and received error:
root@zzz:~# aptitude update

Hit http://ru.archive.ubuntu.com maverick-updates/multiverse amd64 Packages
Fetched 2,952B in 17s (167B/s)
W: GPG error: http://ppa.launchpad.net maverick Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 0EE1BF5F3C8E2A7F