Grokbase
Topics Posts Groups | in
x
[ help ]

William L. Maltby (centos...@triad.rr.com)

Profile | Posts (73)

User Information

Display Name:William L. Maltby
Partial Email Address:centos...@triad.rr.com
Posts:
73 total
73 in CentOS

5 Most Recent

All Posts
1) William L. Maltby Re: [CentOS] nspluginwrapper included in CentOS 5.2 fails completely
| +1 vote
I don't know if this applies to the specific OP issue, but a recent thread here...
CentOS
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
On Tue, 2008-11-18 at 00:54 -0500, Ed Donahue wrote:
> <snip>

I don't know if this applies to the specific OP issue, but a recent
thread here

http://lists.rpmforge.net/pipermail/users/2008-November/002056.html

touches on similar issues.

I post because I thought it might be generally useful to the populace
here.

--
Bill

_______________________________________________
CentOS mailing list
[email protected: C...@centos.org]
http://lists.centos.org/mailman/listinfo/centos
2) William L. Maltby Re: [CentOS] Timeout for a script
| +1 vote
<*sigh*> Well, it seems that bash doesn't have some of the stuff ISTR from the original *IX stuff...
CentOS
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
On Wed, 2008-11-12 at 05:37 -0500, William L. Maltby wrote:
> On Wed, 2008-11-12 at 11:54 +0200, Jussi Hirvi wrote:
> > How could I make a script time out after nn minutes, if it's not finished by
> > then?
> ><snip>

> Do "man bash" and search for "trap". For those not familiar, it can be a
> little confusing, but it's well worth the effort, in terms of results
> and learning.

<*sigh*>

Well, it seems that bash doesn't have some of the stuff ISTR from the
original *IX stuff (builtin alarm? not sure anymore). Anyway, a google
for "bash alarm trap" led to this and there are lots more. This was just
the first and may not be the best for your needs.

http://steve-parker.org/sh/trap.shtml

Anyway, sans "alarm", a trap, sleep, SIGUSR* or SIGINT combination should
do nicely.

HTH
--
Bill

_______________________________________________
CentOS mailing list
[email protected: C...@centos.org]
http://lists.centos.org/mailman/listinfo/centos
3) William L. Maltby Re: [CentOS] Timeout for a script
| +1 vote
Do "man bash" and search for "trap". For those not familiar, it can be a little confusing, but it's...
CentOS
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
On Wed, 2008-11-12 at 11:54 +0200, Jussi Hirvi wrote:
> How could I make a script time out after nn minutes, if it's not finished by
> then?
>
> The practical context: I have a dozen or so of backup scripts in a directory
> "daily", and they are run by cron like this:
> > 0 23 * * 1-6 run-parts /root/daily
>
> Sometimes one of the scripts hang, in which case the rest of the scripts are
> delayed more than can be allowed.

Do "man bash" and search for "trap". For those not familiar, it can be a
little confusing, but it's well worth the effort, in terms of results
and learning.

>
> - Jussi
> <snip sig stuff>

HTH
--
Bill

_______________________________________________
CentOS mailing list
[email protected: C...@centos.org]
http://lists.centos.org/mailman/listinfo/centos
4) William L. Maltby Re: [CentOS] Where is the file that sets aliases?
| +1 vote
Helped by circumstances. _Normally_, the default install has those aliases only assigned for root,...
CentOS
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
On Mon, 2008-11-10 at 20:11 +0000, Anne Wilson wrote:
> On Monday 10 November 2008 19:56:52 Anne Wilson wrote:
> > On Monday 10 November 2008 19:45:32 Joshua Baker-LePain wrote:
> > > On Mon, 10 Nov 2008 at 7:42pm, Anne Wilson wrote
> > >
> > > > Looking back, I still can't see it, Kai. I remember being told to look
> > > > in ~/.bashrc.
> > >
> > > If you're root (why are you logging in as root?), then ~ *is* /root.
> >
> > I wasn't - that's the whole point. That's why I didn't find it.
> >
> I guess that the OP thought I was when he said that, though

Helped by circumstances. _Normally_, the default install has those
aliases only assigned for root, due to the great risk to the system.

So it would be a natural assumption. As usual "assume" has its risks.


>
> Anne
> <snip>

--
Bill

_______________________________________________
CentOS mailing list
[email protected: C...@centos.org]
http://lists.centos.org/mailman/listinfo/centos
5) William L. Maltby Re: [CentOS] [SOLVED] Problem with widescreen display
| +1 vote
Well, I think its utility is such that it ought to be in the wiki hints. If you have time and...
CentOS
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
On Mon, 2008-11-10 at 00:20 +0000, Marko Vojinovic wrote:
> On Saturday 01 November 2008 22:08, Marko Vojinovic wrote:
> > Basically, what I did was to run system-config-display to reconfigure for
> > the new monitor and resolution. All goes well, but after X restarts, I see
> > a strange picture: the resolution indeed goes to 1680x1050 as is supposed
> > to, but is squeezed/shrinked/scaled horizontally to match a 4:3 aspect
> > ratio, leaving two (unequal) black bands on the left and right side of the
> > monitor.
> [snip]
> > The very same hardware and virtually same X configuration work perfectly ok
> > on FC4
> [snip]
>
> Ok, just for the record, I resolved the issue, in the following way:
>
> - took the exact modeline parameters for 1680x1050 (known to work) from FC4's
> Xorg.0.log and copy-pasted it into CentOS's xorg.conf
> - also took the DisplaySize, HorizSync and VertRefresh parameters from the
> Fedora's log and put it into xorg.conf
> - Disabled the DDC (undocumented option!!!) <----- CRUCIAL PART !!!
> - took the modeline parameters for various other resolutions since without DDC
> nothing gets autoconfigured
> - restarted X
>
> Now everything works perfectly, and my hacked xorg.conf is just the default
> one with the following "Monitor" section:
>
> Section "Monitor"
>  Identifier "Monitor0"
>  ModelName "LCD Panel 1680x1050"
> # hacked DisplaySize --- note that the values are *wrong*,
> # monitor is actually 470x300 mm
>  DisplaySize 370 280
>  HorizSync 31.5 - 90.0
>  VertRefresh 60.0 - 60.0
>  Option  "dpms"
> # turned off the DDC; didn't know which option would do
> # the job so put them both there
>  Option  "NoDDC" "true"
>  Option  "DDC" "false"
> # various modelines, taken from Fedora's log:
> Modeline "1680x1050" 147.14 1680 1784 1968 2256 1050 1051 1054 1087 -hsync
> +vsync
> Modeline "1400x1050" 122.00 1400 1488 1640 1880 1050 1052 1064 1082 +hsync
> +vsync
> Modeline "800x600" 40.00 800 840 968 1056 600 601 605 628 +hsync +vsync
> Modeline "640x480" 25.20 640 656 752 800 480 490 492 525 -hsync -vsync
> EndSection
>
> Hopefully someone with a similar problem maybe finds this useful. ;-)

Well, I think its utility is such that it ought to be in the wiki hints.
If you have time and interest, why don't you ask the folks for access
and location in the wiki? Adding a little commentary about the meaning
of the values would make it useful to similar, but slightly different,
setups as well.

Glad you "fingered" it out.


>
> Best, :-)
> Marko
> <snip>

--
Bill


_______________________________________________
CentOS mailing list
[email protected: C...@centos.org]
http://lists.centos.org/mailman/listinfo/centos

spacer
Profile | Posts (73)
Home > People > William L. Maltby