| Author |
Message |
Dr Balwinder Singh Dheema *nix forums beginner
Joined: 18 Feb 2005
Posts: 9
|
Posted: Fri Feb 18, 2005 1:44 pm Post subject:
Re: cron log?
|
|
|
On 02/17/2005 02:00 PM, bonj wrote:
| Quote: | I set up a job for cron to run like this:
echo * 2 * * * yum -y update>yumcron.sched && crontab yumcron.sched
^^^^^^^^^^^^^^ |
Do you think that echo will give you the expected results?
Try it yourself:
$ echo * 2 * * * yum -y update
and see/verify the output. A better approach is:
$ crontab -e
| Quote: | what log file can I examine to check it ran ok?
|
That depends on your /etc/syslog.conf, or have a look at:
/var/log/cron.log
/var/log/syslog.log
/var/log/messages
--
Dr Balwinder Singh Dheeman Registered Linux User: #229709
CLLO (Chief Linux Learning Officer) Machines: #168573, 170593, 259192
Anu's Linux@HOME Distros: Ubuntu, Fedora, Knoppix
More: http://anu.homelinux.net/~bsd/ Visit: http://counter.li.org/ |
|
| Back to top |
|
 |
nope *nix forums beginner
Joined: 20 Feb 2005
Posts: 24
|
Posted: Sun Feb 20, 2005 5:31 pm Post subject:
Re: J2RE crashes Firefox in Fedora FC3
|
|
|
On Sat, 15 Jan 2005 19:12:15 +0000 (UTC), Stephen Rafferty
<stephen.rafferty@orange.net> wrote:
| Quote: | I'm in the exact same boat with this - I got java working (I use it on
Azureus) but it refuses to boogie with Firefox....
|
Ditto here. No java support with firefox and fedora core 3. |
|
| Back to top |
|
 |
Chris F.A. Johnson *nix forums Guru
Joined: 20 Feb 2005
Posts: 2268
|
Posted: Sun Feb 20, 2005 10:01 pm Post subject:
Re: Prevent "history" from being reset
|
|
|
On Sun, 20 Feb 2005 at 23:01 GMT, Shabam wrote:
| Quote: | Ok after this long discussion I still haven't figured out how to do this.
I'm pretty sure the "history" is being rotated monthly, and would like to
prevent that from happening. Any ideas?
|
As I asked the last time you posted the question, "What 'history'
are you talking about?"
--
Chris F.A. Johnson http://cfaj.freeshell.org
===================================================================
My code (if any) in this post is copyright 2005, Chris F.A. Johnson
and may be copied under the terms of the GNU General Public License |
|
| Back to top |
|
 |
Shabam *nix forums beginner
Joined: 20 Feb 2005
Posts: 13
|
Posted: Sun Feb 20, 2005 10:01 pm Post subject:
Re: Prevent "history" from being reset
|
|
|
Ok after this long discussion I still haven't figured out how to do this.
I'm pretty sure the "history" is being rotated monthly, and would like to
prevent that from happening. Any ideas? |
|
| Back to top |
|
 |
Shabam *nix forums beginner
Joined: 20 Feb 2005
Posts: 13
|
Posted: Mon Feb 21, 2005 12:37 am Post subject:
Re: Prevent "history" from being reset
|
|
|
| Quote: | As I asked the last time you posted the question, "What 'history'
are you talking about?"
|
The command "history" |
|
| Back to top |
|
 |
Jason F. *nix forums beginner
Joined: 21 Feb 2005
Posts: 40
|
Posted: Mon Feb 21, 2005 1:34 am Post subject:
Re: Prevent "history" from being reset
|
|
|
Shabam wrote:
| Quote: | As I asked the last time you posted the question, "What 'history'
are you talking about?"
The command "history"
|
So you're talking about the shell's commandline history. A good howto on
disabling this for all users, or just you, can be found here:
http://gentoo-wiki.com/SECURITY_Adjusting_The_Way_Bash_History_Funtions
Basically, you just need to set some HIST* environment vars. Having a
command history is really handy though, so I wouldn't be so presumptuous
as to disable it system-wide unless you're the only one using the system
(root & user). |
|
| Back to top |
|
 |
Jason F. *nix forums beginner
Joined: 21 Feb 2005
Posts: 40
|
Posted: Mon Feb 21, 2005 1:38 am Post subject:
Re: Prevent "history" from being reset
|
|
|
Shabam wrote:
| Quote: | Ok after this long discussion I still haven't figured out how to do this.
I'm pretty sure the "history" is being rotated monthly, and would like to
prevent that from happening. Any ideas?
|
As far as your history being 'rotated' monthly - I'm not sure why that
would be happening. Maybe a paranoid admin is nuking all the users
~/.bash_history file once a month so that juicy passwords don't get left
sitting there? If that's your problem then I'd recommend you change the
default filename that bash uses for its historyfile as a workaround
(assuming your BOFH's script isn't also checking your .bash_profile for
this non-default filename.) |
|
| Back to top |
|
 |
Chris F.A. Johnson *nix forums Guru
Joined: 20 Feb 2005
Posts: 2268
|
Posted: Mon Feb 21, 2005 2:33 am Post subject:
Re: Prevent "history" from being reset
|
|
|
On Mon, 21 Feb 2005 at 01:37 GMT, Shabam wrote:
| Quote: | As I asked the last time you posted the question, "What 'history'
are you talking about?"
The command "history"
|
The size of the command history is set by the HISTFILESIZE
variable. The default is 500 lines. You can change that in your
.bashrc file.
--
Chris F.A. Johnson http://cfaj.freeshell.org
===================================================================
My code (if any) in this post is copyright 2005, Chris F.A. Johnson
and may be copied under the terms of the GNU General Public License |
|
| Back to top |
|
 |
Shabam *nix forums beginner
Joined: 20 Feb 2005
Posts: 13
|
Posted: Mon Feb 21, 2005 3:41 am Post subject:
Re: Prevent "history" from being reset
|
|
|
| Quote: | The size of the command history is set by the HISTFILESIZE
variable. The default is 500 lines. You can change that in your
.bashrc file.
|
Mine is resetting on the first of each month. I want to configure it so the
history file never gets reset. |
|
| Back to top |
|
 |
Chris F.A. Johnson *nix forums Guru
Joined: 20 Feb 2005
Posts: 2268
|
Posted: Mon Feb 21, 2005 4:06 am Post subject:
Re: Prevent "history" from being reset
|
|
|
On Mon, 21 Feb 2005 at 04:41 GMT, Shabam wrote:
| Quote: | The size of the command history is set by the HISTFILESIZE
variable. The default is 500 lines. You can change that in your
.bashrc file.
Mine is resetting on the first of each month. I want to configure it so the
history file never gets reset.
|
How is it being reset?
Is the file emptied, or just truncated?
Is the old file renamed (and possibly compressed)?
Do you have a cron job that is doing it?
Is there an entry in /etc/logrotate.conf or /etc/logrotate.d/ that
is doing it?
--
Chris F.A. Johnson http://cfaj.freeshell.org
===================================================================
My code (if any) in this post is copyright 2005, Chris F.A. Johnson
and may be copied under the terms of the GNU General Public License |
|
| Back to top |
|
 |
Shabam *nix forums beginner
Joined: 20 Feb 2005
Posts: 13
|
Posted: Mon Feb 21, 2005 4:28 am Post subject:
Re: Prevent "history" from being reset
|
|
|
| Quote: | How is it being reset?
Is the file emptied, or just truncated?
Is the old file renamed (and possibly compressed)?
Do you have a cron job that is doing it?
Is there an entry in /etc/logrotate.conf or /etc/logrotate.d/ that
is doing it?
|
It's been emptied at the first of each month.
/etc/logrotate.d/ shows nothing that would reset the history file:
apache ftpd linuxconf mgetty mysqld rpm slrnpull snmpd syslog
up2date
And cron doesn't seem to show anything either. |
|
| Back to top |
|
 |
Chris F.A. Johnson *nix forums Guru
Joined: 20 Feb 2005
Posts: 2268
|
Posted: Mon Feb 21, 2005 5:14 am Post subject:
Re: Prevent "history" from being reset
|
|
|
On Mon, 21 Feb 2005 at 05:28 GMT, Shabam wrote:
| Quote: | How is it being reset?
Is the file emptied, or just truncated?
Is the old file renamed (and possibly compressed)?
Do you have a cron job that is doing it?
Is there an entry in /etc/logrotate.conf or /etc/logrotate.d/ that
is doing it?
It's been emptied at the first of each month.
/etc/logrotate.d/ shows nothing that would reset the history file:
apache ftpd linuxconf mgetty mysqld rpm slrnpull snmpd syslog
up2date
|
What about /etc/logrotate.conf?
| Quote: | And cron doesn't seem to show anything either.
|
I suppose it's possible that RedHat does something strange, but I
don't know what; I don't run RedHat.
At what time does the resetting occur?
You could append everything to your own history file, and copy that
over the usual one when it is clobbered. Just change your
PROMPT_COMMAND and reread your file (put this in your .bashrc):
PROMPT_COMMAND='${PROMPT_COMMAND:+$PROMPT_COMMAND;} history -a $HOME/.my_history'
history -c ## Clear your history
history -r $HOME/.my_history ## Restore from your own file
--
Chris F.A. Johnson http://cfaj.freeshell.org
===================================================================
My code (if any) in this post is copyright 2005, Chris F.A. Johnson
and may be copied under the terms of the GNU General Public License |
|
| Back to top |
|
 |
Blind Mellon *nix forums beginner
Joined: 21 Feb 2005
Posts: 7
|
Posted: Mon Feb 21, 2005 7:46 am Post subject:
Re: J2RE crashes Firefox in Fedora FC3
|
|
|
On Sun, 20 Feb 2005 12:31:42 -0600, nope wrote:
| Quote: | On Sat, 15 Jan 2005 19:12:15 +0000 (UTC), Stephen Rafferty
stephen.rafferty@orange.net> wrote:
I'm in the exact same boat with this - I got java working (I use it on
Azureus) but it refuses to boogie with Firefox....
Ditto here. No java support with firefox and fedora core 3.
|
This worked for me:
Get Java at:
http://java.sun.com/
then:
cd /usr/lib/firefox-1.0/plugins/
ln -s /opt/jdk1.5.0_01/jre/plugin/i386/ns7/libjavaplugin_oji.so . |
|
| Back to top |
|
 |
Jose Maria Lopez Hernande *nix forums Guru Wannabe
Joined: 21 Feb 2005
Posts: 160
|
Posted: Mon Feb 21, 2005 8:38 am Post subject:
Re: J2RE crashes Firefox in Fedora FC3
|
|
|
Blind Mellon wrote:
| Quote: | On Sun, 20 Feb 2005 12:31:42 -0600, nope wrote:
On Sat, 15 Jan 2005 19:12:15 +0000 (UTC), Stephen Rafferty
stephen.rafferty@orange.net> wrote:
I'm in the exact same boat with this - I got java working (I use it on
Azureus) but it refuses to boogie with Firefox....
Ditto here. No java support with firefox and fedora core 3.
This worked for me:
Get Java at:
http://java.sun.com/
then:
cd /usr/lib/firefox-1.0/plugins/
ln -s /opt/jdk1.5.0_01/jre/plugin/i386/ns7/libjavaplugin_oji.so .
|
I did just the same and I finally have Java working in Firefox.
I couldn't do it with version 1.4 of JRE, but now with Firefox 1.0,
JRE 1.5 and Fedora Core 3 it's working OK.
Regards.
--
Jose Maria Lopez Hernandez
Director Tecnico de bgSEC
jkerouac@bgsec.com
bgSEC Seguridad y Consultoria de Sistemas Informaticos
http://www.bgsec.com
ESPAŅA
The only people for me are the mad ones -- the ones who are mad to live,
mad to talk, mad to be saved, desirous of everything at the same time,
the ones who never yawn or say a commonplace thing, but burn, burn, burn
like fabulous yellow Roman candles.
-- Jack Kerouac, "On the Road" |
|
| Back to top |
|
 |
jeff archacki *nix forums beginner
Joined: 19 Feb 2005
Posts: 16
|
Posted: Mon Feb 21, 2005 5:20 pm Post subject:
Re: changing setup in fedora 3
|
|
|
On Sun, 13 Feb 2005 22:16:56 +0000, me9 wrote:
| Quote: | Up till recently I've been using SuSE linux, quite happily. I'd tried Red Hat
and Mandrake in earlier days with less success. I recently found some issues
with SuSE 9.2 so I've tried out Fedora 3 as an extra boot on my spare box.
With SuSE there was a configuration/setup tool called Yast.
Is there anything similar in Fedora, or do I have to edit the config
manually?
|
I just switched from suse 9.2 to fc3 amd64 about a week ago. I love suse
but it was running a bit slow on my box. I really miss yast but there are
gui tools throughout fc3 that do most of the same things. Installing apps
is a different story. I tried apt and had dependency nightmares and
finally found a tool called yumex that will ease rpm installation.
this article has a link:
http://www.eweek.com/article2/0,1759,1754421,00.asp?kc=EWRSS03129TX1K0000616
I may eventually go back to suse but will stick with fc3 for now. The one
thing I noticed was that fc3 has many more amd64 compiled apps than suse
or mandrake. |
|
| Back to top |
|
 |
Google
|
|
| Back to top |
|
 |
|