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.

I am using crontab on unix shell

using putty to connect to unix server

unable to use crontab

i scheduled crontab at say * * * * * cat > new < new1

doesnt work I works only in home directory of user only not in other directory

can you help me in this

share|improve this question

migrated from stackoverflow.com Feb 8 '10 at 9:10

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

    
Please rephrase your question giving more information. What is the exact crontab line? How do you use crontab (crontab -e or you modify a specific file)? Have you tried that command? Have you tried putting it in an executable script? Is there any error in the logfiles? ...etc –  lorenzog Feb 8 '10 at 9:16

2 Answers 2

Try putting full paths for the filenames.

share|improve this answer

Are you using the system-wide crontab in /etc/crontab or the user's crontab (crontab -e)? If the latter, does the user have write access to that "other directory"?

share|improve this answer

Your Answer

 
discard

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