You are Here:
FAQ
Scripting & Programming
Cron Jobs
Article #4
|
How do I edit a cron tab file?1&1 Professional 5.0 By calling up the cron tab –e the editor vi is called up.For those who have never worked with Editor vi the first time is somewhat confusing that the vi has two modes. In the so-called command mode, one enters “commands” for example “store the file”. Keyboard entries in this mode are not visible as text to the editing file, but rather are interpreted as commands. In the second mode, an entry mode, can be reached by using an insert command. In most cases it is the i (insert) or the insert (insert) key. In this mode, the symbols that are entered per keyboard are immediately inserted in the text. Afterward, you can reach the command mode once again by pressing the esc key. Pressing this key continuously doesn’t hurt the programme, it just beeps more. Here are the important commands: Please be aware that all commands that begin with a colon ( : )have to be closed by using RETURN. dd – delete current lineu – undo last changex – delete the symbol under the cursorj – combine the lineso – insert a new line under the current onep – insert data from your storage space to the cursor position:q – exit Editor:q! – exit Editor without storing the text.:wq - save the text and exit Editori – jump to the entry mode, enter text at the cursor position. |
© 2007 1&1 Internet Ltd - About 1&1 Internet