Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Have a problem with command faketime.

Trying to use it, but always get an error:

faketime -t "2000-01-01 01:00:00"
/usr/bin/faketime: 102: exec: 2000-01-01 01:00:00: not found

I have Ubuntu 12.04

share|improve this question

migrated from stackoverflow.com Dec 8 '12 at 0:23

This question came from our site for professional and enthusiast programmers.

2  
Read the documentation. The the above, faketime is trying to exec/execute "2000-01-..." which means you are using faketime incorrectly. Refer to the examples in the provide link (or other suitable documentation/man page). – pst Dec 7 '12 at 17:58
    
Can you explain how to make it correct for date 2000-01-01 01:00:00 – Viacheslav Kondratiuk Dec 10 '12 at 6:56

Do you read faketime man page?

faketime 'last Friday 5 pm' /bin/date
faketime '2000-01-01 01:00:00' /bin/date
share|improve this answer
1  
Thank you for your helpfull first post. (Minor hint: I would use 4 blank intention for a code block to simulate prompts as > at the beginning of the line is a quote). – eckes Dec 13 '12 at 3:15

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .