A Really Dumb Linux Question

Derleth: Yes, I have a shell account. At least, I can connect via telnet (SSH) and monkey around on the command line.

Undead Dude, Joe Cool: I figured I’d just change it from “>>” to “>”, which as I understand it, will overwrite the file rather than appending to it. That way, I always have the results of the last crontab, without the file getting huge.

that sounds like a good compromise. I’d recommend leaving off the 2>&1 though, so that you still get e-mail when there’s an error.

Actually, in at least csh and tcsh shells (maybe all of them, for all I know), “>” means write to file, unless it exists. “>>” means append. If you want to overwrite the file, you need to use “>!”.

Well, it depends. Most shells (at least tcsh[sub](which we all know is the best)[/sub] and bash) will actually allow ‘>’ to overwrite a file unless ‘noclobber’ is set. But in all systems I’ve seen it’s set by default. It’s never a bad idea to use ‘>!’ if you’re sure that you want to overwrite.
[sub]Emacs rules[/sub]

Eh, zsh is better :slight_smile:

DOH! s/OpalCat/Undead Dude/

Maybe, but where do you find that installed by default? Better get used to sh. :wink:

I’ve worked with a few Solaris and FreeBSD systems, and didn’t have root access… But in every case, the fellow who did have root access had already installed pico. Besides, even without root access, I’m pretty sure that pico would be small enough to fit into a reasonably-sized home directory. Yes, I know that vi is even smaller.

Popup, very nice indeed. :slight_smile:

But of course I do know sh very well also. I probably know it better than zsh, since there is less to know. :slight_smile:

For every day use, I’m pretty comfortable with any shell that has an arrow-key based history. Because of the limitations of what is installed where, I pretty regularly use csh, bash and tcsh interactively, and sh for scripting. At least one of those is bound to be on just about any system. Zsh just has a few extra bells/whistles, plus, when I am switching back and forth between different shells because of limitations on other systems, zsh is very forgiving when I get back to my systems. If I throw tcsh syntax at it, it doesn’t complain. If I throw bash syntax at it doesn’t complain.

And Chronos, that might often be true for hobbyists and “ma and pa” situations, but when “that fellow” has set up a farm of 20+ Solaris/FreeBSD servers, you’ll probably find that case to evaporate. :slight_smile:
My experience is that it is very likely to be on a workstation (esp if someone there likes pine, of course), but on dedicated servers, you usually have what came on the CD plus the needed service apps, not much more. And of course pico doesn’t tend to come on the non-Linux CDs. And if today you need to work on web005.north.somecompany.net and tomorrow you need to work on web014.north.somecompany.net, carrying your own tent with you starts to get a little tiring.