Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 –  viakondratiuk Dec 10 '12 at 6:56

1 Answer 1

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.