Setting cron job using vi
11/03/2018 9:30
Over the last few days I've read quite a bit on this and other groupsabout 'cron' jobs so to learn a bit more about cron decided to set one formyself.

Following the instructions, the first line I type into console is 'vi/etc/cron.daily/auto-update' and this creates a format within the consoleI must assume is 'vi'. The first line I attempt to type into this is'#!/bin/bash' but when I do this the first two characters (#!) don'tappear anywhere although the rest of the line appears at the bottom lineof the console.

I don't want to fuck anything up here, so what am I doing wrong? Is thereanother way I can do this to avoid using 'vi'? Like creating a text filewith the correct commands and saving it as an executable somewhere? A lot of the information I glean using Google sort of presupposes a levelof knowledge of some things that I have not yet attained, some of which Iknow some of this group's users will find second nature.

Nothing I have learned in my life has made me feel as stupid as Linuxmakes me feel sometimes, but I fully intend to come out on top in thisparticular competition. Eventually :-)

Source is Usenet: alt.os.linux.mandriva
Sign in to add a comment

Answer score: 5
11/03/2018 9:30 - You get to pick the application/tool/program to use for a given task.

Your knowledge about the tool/app is what is going to make it effective for your use.

First thing is to try the man and info documentation for everyapp/tool you start to use.

Next I suggest doing something like locate -i app_name_here | grep -i docand cut/paste result into your browser.

Example: locate -i vi | grep -i doc Too many hits, trylocate -i /vi | grep -i /doc/ In your case, vim is a more user friendly vi like application.

Sometimes I try for a index. Using your example locate -i /vi | grep -i /doc/ | grep -i indexwhich might return something of interest like/usr/share/doc/vim-common-7.0/doc/index.txt Just cut/paste into your browser. I find it handy to just enter the directory/usr/share/doc/vim-common-7.0/docand browse from there if there is no index.htm* file.


Source is Usenet: alt.os.linux.mandriva
Sign in to add a comment

Answer score: 5
11/03/2018 9:30 - Yes, but the OP would be looking for vi not vim. :(

Source is Usenet: alt.os.linux.mandriva
Sign in to add a comment

Answer score: 5
11/03/2018 9:30 - Aardvark <Aardvark@youllnever.know> writes: What instructions did you find that said to edit a file there.

I suspect they are bad instructions.

Crontab files don't start with #!/bin/bash.

Maybe you need to read some more.

If you don't want to learn the odd command syntax of vi,use nedit instead.


Source is Usenet: alt.os.linux.mandriva
Sign in to add a comment

Answer score: 5
11/03/2018 9:30 - Bit Twister <BitTwister@mouse-potato.com> writes: On virtually every distro I know, vi IS just vim. It is soft link to vim.

Source is Usenet: alt.os.linux.mandriva
Sign in to add a comment

Answer score: 5
11/03/2018 9:30 - The softpedia ones here: http://66.102.9.104/search?q=cache:8DPMkuJ9IVMJ:news.softpedia.com/newsPDF/How-to-Configure-and-Use-URPMI-48800.pdf+mandriva+urpmi+auto-update+command&hl=en&ct=clnk&cd=3&gl=uk The instructions give a few lines of code to copy/paste. The first line is'#!/bin/bash'.

I want to learn anything that is effective in making the OS do anything Iwant the OS to do.


Source is Usenet: alt.os.linux.mandriva
Sign in to add a comment

eDiscover
Helpforce eDiscover provides technical articles updated each dayHelpforce eDiscover RSS feed contains the latest technical articles in RSS
Click the logo to go back to the main page
Search eDiscover
  
Categories

Click an icon to go to that category

Helpforce eDiscover contains articles about Microsoft Windows Helpforce eDiscover contains articles about Apple products and MacOS Helpforce eDiscover contains articles about Linux and POSIX operating systems Helpforce eDiscover contains articles about Helpforce Helpforce has a large variety of technical information and articles for you to read Helpforce eDiscover contains articles about databases, MYSQL, SQL Server Oracle Helpforce eDiscover contains articles about Java, JVM and the JRE Helpforce eDiscover contains articles about the QNX operating system Helpforce eDiscover contains articles about Oracle Solaris and Open Solaris Helpforce eDiscover contains articles about RISC OS, Acorn and the BBC Micro Helpforce eDiscover contains articles about Amiga and AmigaOS

Type your comment into the box below