Re: How to move vi to /bin

2009-05-15 Thread perryh
ving to use the workarounds suggested in place of vi is not > so good, and manually moving vi to /bin is not simply a matter > of 'mv /usr/bin/vi /bin/'. > > One of the things I would dearly like to see in a future release > is vi being placed under /bin. Maybe put something

Re: How to move vi to /bin

2009-05-15 Thread Matthew Seaman
Manish Jain wrote: Mel Flynn wrote: On Wednesday 13 May 2009 09:21:46 manish jain wrote: I want to move vi to /bin so that I have an editor available in single-user mode. The only reason to need an editor and not have /usr and /var available is to edit /etc/fstab. It is trivial to spot

Re: How to move vi to /bin

2009-05-14 Thread Manish Jain
Mel Flynn wrote: On Wednesday 13 May 2009 09:21:46 manish jain wrote: I want to move vi to /bin so that I have an editor available in single-user mode. The only reason to need an editor and not have /usr and /var available is to edit /etc/fstab. It is trivial to spot errors with /rescue/cat

Re: How to move vi to /bin

2009-05-14 Thread perryh
Chris Rees wrote: > 2009/5/14 Chad Perrin : > > On Thu, May 14, 2009 at 11:38:30AM +0100, Chris Rees wrote: > >> I think the problem with that is he meant changing the root > >> shell to /usr/local/bin/bash. You're better off using /bin/sh > >> if you wan

Re: How to move vi to /bin

2009-05-14 Thread Polytropon
On Thu, 14 May 2009 20:13:02 +0200, Mel Flynn wrote: > sh is worse then csh. But sufficient for administration tasks in maintenance mode. It's not that you spend hours of dialog sessions in SUM. Remember: It's a worst case scenario. If everything fails, the /bin/sh still works, and

Re: How to move vi to /bin

2009-05-14 Thread Mel Flynn
On Wednesday 13 May 2009 09:21:46 manish jain wrote: > I want to move vi to /bin so that I have an editor available in > single-user mode. The only reason to need an editor and not have /usr and /var available is to edit /etc/fstab. It is trivial to spot errors with /rescue/cat and fi

Re: How to move vi to /bin

2009-05-14 Thread Mel Flynn
every* > > component of a path > > > > There's plenty of reasons not to use csh and if you know what you're > > doing, BSD lets you. And no, I don't want to type exec zsh when I'm > > finally logged into the box that has a load of 100+. > > I t

Re: How to move vi to /bin

2009-05-14 Thread Chris Rees
on't want to type exec zsh when I'm finally logged >> > into the box that has a load of 100+. >> >> I think the problem with that is he meant changing the root shell to >> /usr/local/bin/bash. You're better off using /bin/sh if you want a >> Bourne-

Re: How to move vi to /bin

2009-05-14 Thread Chad Perrin
rovided part, for *every* > > component > > of a path > > > > There's plenty of reasons not to use csh and if you know what you're doing, > > BSD lets you. And no, I don't want to type exec zsh when I'm finally logged > > into the box that h

Re: How to move vi to /bin

2009-05-14 Thread Chris Rees
ou know what you're doing, > BSD lets you. And no, I don't want to type exec zsh when I'm finally logged > into the box that has a load of 100+. I think the problem with that is he meant changing the root shell to /usr/local/bin/bash. You're better off using /bin/sh if y

Re: How to move vi to /bin

2009-05-13 Thread Polytropon
On Wed, 13 May 2009 05:34:43 -0400, Michael Powell wrote: > Yes - use the /rescue/vi as it has been statically compiled so it does not > rely on dynamic libraries which may not be available. The purpose here is > have a fallback position for repairing a damage/problem which may prevent a > succe

Re: How to move vi to /bin

2009-05-13 Thread Mel Flynn
On Wednesday 13 May 2009 11:34:43 Michael Powell wrote: > Kind of like how those coming over from a > Linux environment all seem to want to change root's shell to bash, it > serves no purpose except foot-shooting. - csh cannot redirect stderr seperately from stdout - on pipes the exit status from

Re: How to move vi to /bin

2009-05-13 Thread Michael Powell
Chris Rees wrote: >> On Wed, May 13, 2009 at 12:51:46PM +0530, manish jain wrote: >>> I want to move vi to /bin so that I have an editor available in >>> single-user mode. This sounds simple (and should be if all you have is >>> a single partition), but there are

Re: How to move vi to /bin

2009-05-13 Thread Jose Garcia Juanino
El miércoles 13 de mayo a las 09:21:46 CEST, manish jain escribió: > Hi, > > I want to move vi to /bin so that I have an editor available in > single-user mode. This sounds simple (and should be if all you have is > a single partition), but there are problems. For starters, t

Re: How to move vi to /bin

2009-05-13 Thread Chris Rees
> On Wed, May 13, 2009 at 12:51:46PM +0530, manish jain wrote: >> I want to move vi to /bin so that I have an editor available in >> single-user mode. This sounds simple (and should be if all you have is >> a single partition), but there are problems. For starters, terminf

Re: How to move vi to /bin

2009-05-13 Thread Benjamin M. A'Lee
On Wed, May 13, 2009 at 12:51:46PM +0530, manish jain wrote: > I want to move vi to /bin so that I have an editor available in > single-user mode. This sounds simple (and should be if all you have is > a single partition), but there are problems. For starters, terminfo > can't lo

Re: How to move vi to /bin

2009-05-13 Thread andrew clarke
On Wed 2009-05-13 12:51:46 UTC+0530, manish jain (invalid.poin...@gmail.com) wrote: > I want to move vi to /bin so that I have an editor available in > single-user mode. You may be able to use /rescue/vi. ___ freebsd-questions@freebsd.org mailin

How to move vi to /bin

2009-05-13 Thread manish jain
Hi, I want to move vi to /bin so that I have an editor available in single-user mode. This sounds simple (and should be if all you have is a single partition), but there are problems. For starters, terminfo can't locate its database in single-user mode. Could anyone please tell me how

Re: /usr/bin/calendar in cgi script

2009-04-12 Thread Charles Howse
Yes, I was reminded of the tags, and that solved it. Thanks! On Apr 12, 2009, at 3:58 PM, Modulok wrote: I don't know what program you're using for your CGI stuff, but basically all that is needed is the '' tags. Here is an example which uses PHP to call the system 'calendar' command:

Re: /usr/bin/calendar in cgi script

2009-04-12 Thread Modulok
I don't know what program you're using for your CGI stuff, but basically all that is needed is the '' tags. Here is an example which uses PHP to call the system 'calendar' command: Modulore Training Media Hello world. Calling UNIX calendar program via PHP: On 4/11/09,

Re: /usr/bin/calendar in cgi script

2009-04-11 Thread Charles Howse
On Apr 11, 2009, at 2:07 PM, Robert Huff wrote: Charles Howse writes: Now, when I run that script in a terminal, the output is perfectly formatted, multiple lines (if there are multiple events on this date), date first, event, year. Just right. But, when I put that in an "include" state

Re: /usr/bin/calendar in cgi script

2009-04-11 Thread Brad Mettee
ave a cgi script on my website that runs: /usr/bin/calendar -f /usr/share/calendar/calendar.history Now, when I run that script in a terminal, the output is perfectly formatted, multiple lines (if there are multiple events on this date), date first, event, year. Just right. But, when I put tha

/usr/bin/calendar in cgi script

2009-04-11 Thread Robert Huff
Charles Howse writes: > Now, when I run that script in a terminal, the output is perfectly > formatted, multiple lines (if there are multiple events on this date), > date first, event, year. Just right. > > But, when I put that in an "include" statement in a webpage, the > output is

/usr/bin/calendar in cgi script

2009-04-11 Thread Charles Howse
Hi, I have a cgi script on my website that runs: /usr/bin/calendar -f /usr/share/calendar/calendar.history Now, when I run that script in a terminal, the output is perfectly formatted, multiple lines (if there are multiple events on this date), date first, event, year. Just right. But

Re: /bin/sh does not read profile

2009-03-05 Thread Frank Shute
On Thu, Mar 05, 2009 at 06:11:18PM -0800, Peter Steele wrote: > > >I first wondered why none of my commands in "/etc/profile" and > >"~/.profile" got executed. Finally, I modified > >"/usr/src/bin/sh/main.c" to trace what files are read, recompi

Re: /bin/sh does not read profile

2009-03-05 Thread Polytropon
On Thu, 5 Mar 2009 18:11:18 -0800 (PST), Peter Steele wrote: > I have a similar problem, but with bash. I have both my personal > account and root set to use bash instead of sh and when I login > the .bashrc file is not read. My system does not have an X > environment, it's plain old BSD. How can

Re: /bin/sh does not read profile

2009-03-05 Thread Peter Steele
>I first wondered why none of my commands in "/etc/profile" and >"~/.profile" got executed. Finally, I modified >"/usr/src/bin/sh/main.c" to trace what files are read, recompiled >the "sh" command and: the only file that is executed is "~

Re: /bin/sh does not read profile

2009-03-05 Thread J65nko
This is normally done automatically by the system > when the user first logs in. A login shell first reads commands from the > files /etc/profile and then .profile in a user's home directory, if they > exist. [...] > > I use Slim (X login manager) which calls > &g

Re: /bin/sh does not read profile

2009-03-05 Thread Polytropon
that both files are chmodded executable: % ll .xsession .xinitrc -rwxr-xr-x 1 poly pgm 807 Mar 3 02:46 .xinitrc* -rwxr-xr-x 1 poly pgm 43 Apr 27 2006 .xsession* The ~/.xsession doesn't do anything besides first incorporate settings from ~/.cshrc and then execute ~/

Re: /bin/sh does not read profile

2009-03-05 Thread Frank Shute
> > the > > > files /etc/profile and then .profile in a user's home directory, if > > > they > > > exist. [...] > > > > > > I use Slim (X login manager) which calls > > > > > > exec /bin/sh - ~/.xinitrc > > &

Re: /bin/sh does not read profile

2009-03-05 Thread Bertram Scharpf
begins with a dash (`-'), the shell is also > > consid- > > ered a login shell. [...] A login shell first reads commands from the > > files /etc/profile and then .profile in a user's home directory, if > > they > > exist. [...] > > &g

Re: /bin/sh does not read profile

2009-03-04 Thread Frank Shute
ered a login shell. This is normally done automatically by the system > when the user first logs in. A login shell first reads commands from the > files /etc/profile and then .profile in a user's home directory, if they > exist. [...] > > I use Slim (X login

/bin/sh does not read profile

2009-03-04 Thread Bertram Scharpf
gin shell first reads commands from the files /etc/profile and then .profile in a user's home directory, if they exist. [...] I use Slim (X login manager) which calls exec /bin/sh - ~/.xinitrc I first wondered why none of my commands in "/etc/profile" and "~/

Re[4]: bin/129027: ambigious output for top(1)

2008-12-09 Thread KES
Здравствуйте, Remko. Вы писали 10 декабря 2008 г., 6:12:58: RL> Send questions to [EMAIL PROTECTED] RL> Thnx RL> Verstuurd vanaf mijn iPhone RL> Op 9 dec 2008 om 22:34 heeft KES <[EMAIL PROTECTED]> het volgende RL> geschreven:\ >> Здравствуйте, Remko. >> >> Вы писали 21 ноября 2008 г., 10:3

Re: FreeBSD 7.0-RELEASE (GENERIC) firefox3 /usr/bin/ld: cannot find -lgio-2.0

2008-10-26 Thread Michael Powell
David Christensen wrote: [snip] > > > devel/glib20 and gio-fam-backend seemed to go okay. I think I got > further into firefox3, but it failed: checking for cairo >= 1.6.0 freetype2 fontconfig... Requested 'cairo >= 1.6.0' but version of cairo is 1.4.10 This is telling you the cairo you have

Re: FreeBSD 7.0-RELEASE (GENERIC) firefox3 /usr/bin/ld: cannot find -lgio-2.0

2008-10-26 Thread matt donovan
On Sun, Oct 26, 2008 at 11:01 PM, David Christensen < [EMAIL PROTECTED]> wrote: > Sahil Tandon wrote: > > Do these ellipses include a 'make install'? Otherwise, that is likely > > your problem; devel/glib20 is not actually installed. > > Michael Powell wrote: > >> If you previously had glib20-2.1

Re: FreeBSD 7.0-RELEASE (GENERIC) firefox3 /usr/bin/ld: cannot find -lgio-2.0

2008-10-26 Thread David Christensen
Sahil Tandon wrote: > Do these ellipses include a 'make install'? Otherwise, that is likely > your problem; devel/glib20 is not actually installed. Michael Powell wrote: If you previously had glib20-2.14.6 installed, you will need to do a 'make deinstall' prior to 'make reinstall'. ... then

Re: FreeBSD 7.0-RELEASE (GENERIC) firefox3 /usr/bin/ld: cannot find -lgio-2.0

2008-10-26 Thread Michael Powell
David Christensen wrote: > mdh wrote: >> The answer is to upgrade your devel/glib20 port to the latest version, >> then try to install or upgrade libgiofam, then install the other >> software. > > Thank you for your response. :-) > > > Here's my attempt to carry out your suggestions: > > 2008

Re: FreeBSD 7.0-RELEASE (GENERIC) firefox3 /usr/bin/ld: cannot find -lgio-2.0

2008-10-26 Thread Sahil Tandon
David Christensen <[EMAIL PROTECTED]> wrote: > mdh wrote: >> The answer is to upgrade your devel/glib20 port to the latest version, >> then try to install or upgrade libgiofam, then install the other software. >> > > Thank you for your response. :-) > > Here's my attempt to carry out your sug

Re: FreeBSD 7.0-RELEASE (GENERIC) firefox3 /usr/bin/ld: cannot find -lgio-2.0

2008-10-26 Thread David Christensen
lib20/work/glib-2.16.5' 20081026-125854 [EMAIL PROTECTED] /usr/ports/devel/glib20 # cd ../gio-fam-backend 20081026-125954 [EMAIL PROTECTED] /usr/ports/devel/gio-fam-backend # make ===> Building for gio-fam-backend-2.16.5 /bin/sh ../../libtool --tag=CC --mode=link cc -DG_LOG_DOMAIN=\&

Re: FreeBSD 7.0-RELEASE (GENERIC) firefox3 /usr/bin/ld: cannot find -lgio-2.0

2008-10-26 Thread mdh
--- On Sun, 10/26/08, David Christensen <[EMAIL PROTECTED]> wrote: > From: David Christensen <[EMAIL PROTECTED]> > Subject: FreeBSD 7.0-RELEASE (GENERIC) firefox3 /usr/bin/ld: cannot find > -lgio-2.0 > To: "Freebsd-Questions" > Date: Sunday, October 26, 2008,

Re: FreeBSD 7.0-RELEASE (GENERIC) firefox3 /usr/bin/ld: cannot find -lgio-2.0

2008-10-26 Thread Jeremy Chadwick
On Sun, Oct 26, 2008 at 11:10:48AM -0700, David Christensen wrote: > freebsd-questions: Try freebsd-ports for this question, as your issue is with a port. :-) -- | Jeremy Chadwickjdc at parodius.com | | Parodius Networking http://www.parodiu

FreeBSD 7.0-RELEASE (GENERIC) firefox3 /usr/bin/ld: cannot find -lgio-2.0

2008-10-26 Thread David Christensen
nfig/xproto.pc - found ===> firefox-3.0.3,1 depends on file: /usr/local/bin/perl5.8.8 - found ===> firefox-3.0.3,1 depends on file: /usr/local/bin/intltool-extract - found ===> firefox-3.0.3,1 depends on executable: pkg-config - found ===> firefox-3.0.3,1 depends on

Re: what is /usr/local/bin/gsc ?

2008-06-02 Thread Oliver Fromme
Anton Shterenlikht wrote: > Jonathan Chen wrote: > > Anton Shterenlikht wrote: > > > What is /usr/local/bin/gsc ? > > > > If you have portupgrade, pkg_which(1) can tell you. gsc is actually > > "gs", which is ghostscript. > > thanks &g

Re: what is /usr/local/bin/gsc ?

2008-06-02 Thread Anton Shterenlikht
On Mon, Jun 02, 2008 at 03:03:48PM +0400, Yuri Pankov wrote: > Anton Shterenlikht wrote: > >Hi > > > >What is /usr/local/bin/gsc ? > > > >I run FreeBSD 6.3-STABLE #2 on compaq armada laptop. > > > >When I send a job for printing I see gsc process r

Re: what is /usr/local/bin/gsc ?

2008-06-02 Thread Yuri Pankov
Anton Shterenlikht wrote: Hi What is /usr/local/bin/gsc ? I run FreeBSD 6.3-STABLE #2 on compaq armada laptop. When I send a job for printing I see gsc process running: PID USERNAMETHR PRI NICE SIZERES STATETIME WCPU COMMAND [skip] 99954 daemon1 1170 27244K

Re: what is /usr/local/bin/gsc ?

2008-06-02 Thread Anton Shterenlikht
On Mon, Jun 02, 2008 at 10:59:31PM +1200, Jonathan Chen wrote: > On Mon, Jun 02, 2008 at 11:53:47AM +0100, Anton Shterenlikht wrote: > > Hi > > > > What is /usr/local/bin/gsc ? > > If you have portupgrade, pkg_which(1) can tell you. gsc is actually > "gs&qu

Re: what is /usr/local/bin/gsc ?

2008-06-02 Thread Vince Hoffman
Assuming it was installed from ports, if you have portupgrade installed you could try pkg_which /usr/local/bin/gsc For me this gives [11:59:40:/usr/home/jhary] ([EMAIL PROTECTED])$pkg_which /usr/local/bin/gsc ghostscript-gpl-8.62_2 Ghostscript is a postscript interpreter which would make sense

Re: what is /usr/local/bin/gsc ?

2008-06-02 Thread Jonathan Chen
On Mon, Jun 02, 2008 at 11:53:47AM +0100, Anton Shterenlikht wrote: > Hi > > What is /usr/local/bin/gsc ? If you have portupgrade, pkg_which(1) can tell you. gsc is actually "gs", which is ghostscript. Cheers. -- Jonathan Che

what is /usr/local/bin/gsc ?

2008-06-02 Thread Anton Shterenlikht
Hi What is /usr/local/bin/gsc ? I run FreeBSD 6.3-STABLE #2 on compaq armada laptop. When I send a job for printing I see gsc process running: PID USERNAMETHR PRI NICE SIZERES STATETIME WCPU COMMAND [skip] 99954 daemon1 1170 27244K 19000K RUN 0:05 30.08% gsc

Re: where do i find jdk-1_5_0_14-fcs-bin-b03-jrl-05_oct_2007.jar /

2008-04-19 Thread Gary Kline
On Sat, Apr 19, 2008 at 04:33:18PM +1000, Gary Newcombe wrote: > On Fri, 18 Apr 2008 23:09:14 -0700, Gary Kline <[EMAIL PROTECTED]> wrote: > > > > > People, > > I've been looking all over sun-country a nd can't find > > > >jd

Re: where do i find jdk-1_5_0_14-fcs-bin-b03-jrl-05_oct_2007.jar /

2008-04-18 Thread Gary Newcombe
On Fri, 18 Apr 2008 23:09:14 -0700, Gary Kline <[EMAIL PROTECTED]> wrote: > > People, > I've been looking all over sun-country a nd can't find > >jdk-1_5_0_14-fcs-bin-b03-jrl-05_oct_2007.jar http://www.java.net/download/tiger/tiger_u14/jdk-1_5_0_14-fcs-bin-b0

where do i find jdk-1_5_0_14-fcs-bin-b03-jrl-05_oct_2007.jar /

2008-04-18 Thread Gary Kline
People, I've been looking all over sun-country a nd can't find jdk-1_5_0_14-fcs-bin-b03-jrl-05_oct_2007.jar Any clues? thanks much. -- Gary Kline [EMAIL PROTECTED] www.thought.org Public Service Unix http://jottings.thought.org http://transfinite.t

/compat/linux/bin/cp Bad file descriptor

2008-04-03 Thread Liang Zhang
I installed linux_base-fc4 from Ports. When I use /compat/linux/bin/cp with option -p, an error occurred. For example, I type: $ /compat/linux/bin/cp -p a b This message is shown: /compat/linux/bin/cp: preserving times for `b': Bad file descriptor Does anyone know this? T

Re: Problem creating sendmail.cf file from .mc using /usr/bin/m4

2008-03-19 Thread Jonathan Horne
On Wednesday 19 March 2008 09:43:34 am Stephen Allen wrote: > Hello, > > When I run /usr/bin/m4 freebsd.mc, the output looks ok, except that none > of the define() lines show up in the output - even when running m4 on an > unaltered freebsd.mc. > > Can anyone help? > >

Re: Problem creating sendmail.cf file from .mc using /usr/bin/m4

2008-03-19 Thread doug
On Wed, 19 Mar 2008, Stephen Allen wrote: Hello, When I run /usr/bin/m4 freebsd.mc, the output looks ok, except that none of the define() lines show up in the output - even when running m4 on an unaltered freebsd.mc. Can anyone help? Many thanks, Steve Did you try make install? If not

Problem creating sendmail.cf file from .mc using /usr/bin/m4

2008-03-19 Thread Stephen Allen
Hello, When I run /usr/bin/m4 freebsd.mc, the output looks ok, except that none of the define() lines show up in the output - even when running m4 on an unaltered freebsd.mc. Can anyone help? Many thanks, Steve ___ freebsd-questions

Re: linux compat: path problem? /compat/linux/bin/sh doesn't work!

2008-02-13 Thread Boris Samorodov
On Mon, 11 Feb 2008 19:11:32 +0100 (CET) Wojciech Puchar wrote: > > serafina# dmesg -a | grep -A1 ABI > > Additional ABI support: > > linux > > > > serafina# /etc/rc.d/abi restart > > Additional ABI support: linux. > > > magic starts here. sorry. :

Re: /bin/csh script in GELI partition crashes 6.3-STABLE

2008-02-13 Thread Scott Bennett
On Wed, 13 Feb 2008 08:58:01 +0100 Roland Smith <[EMAIL PROTECTED]> wrote: >On Wed, Feb 13, 2008 at 12:59:41AM -0600, Scott Bennett wrote: >> >> % cat show >> >> #! /bin/csh >> >> set delay=3D3D2 >> >> set pixlist=3D3D(09 08 07 05 04 03

Re: /bin/csh script in GELI partition crashes 6.3-STABLE

2008-02-12 Thread Roland Smith
On Wed, Feb 13, 2008 at 12:59:41AM -0600, Scott Bennett wrote: > >> % cat show > >> #! /bin/csh > >> set delay=3D2 > >> set pixlist=3D(09 08 07 05 04 03 02 01) > >> foreach i ($pixlist) > >> (nice xv $i.jpg &) > >>

Re: /bin/csh script in GELI partition crashes 6.3-STABLE

2008-02-12 Thread Scott Bennett
ripts from it, although my scripts are usually sh, not csh. >> > >> >What does the script do? Are you running it as root? >> > >> The script displays a bunch of pictures as separate xv(1) windows. = >No, >> I was running it under my own userid. It is

Re: /bin/csh script in GELI partition crashes 6.3-STABLE

2008-02-12 Thread Scott Bennett
On Tue, 12 Feb 2008 16:06:45 +0100 "[EMAIL PROTECTED]@mgEDV.net" <[EMAIL PROTECTED]> wrote: >> Subject: /bin/csh script in GELI partition crashes 6.3-STABLE >things i ran into with GELI/UFS2+S: >- geli partition sector size larger than 4KB caused panics on one of

Re: /bin/csh script in GELI partition crashes 6.3-STABLE

2008-02-12 Thread Roland Smith
ipts?=20 > > > >My /home is a GELI encrypted partition. I've never had problems running > >scripts from it, although my scripts are usually sh, not csh. > > > >What does the script do? Are you running it as root? > > > The script displays a bunch of pic

Re: /bin/csh script in GELI partition crashes 6.3-STABLE

2008-02-12 Thread Scott Bennett
ected to have problems running scripts? (I do not know whether >> the problem is limited to /bin/csh scripts. After several crashes in just >> a few minutes, I decided I had had enough of that for one night.) >> If anyone has seen this happen before, please let me know. >

Re: /bin/csh script in GELI partition crashes 6.3-STABLE

2008-02-12 Thread Scott Bennett
re usually sh, not csh.=20 > >What does the script do? Are you running it as root? > The script displays a bunch of pictures as separate xv(1) windows. No, I was running it under my own userid. It is quite simple: % cat show #! /bin/csh set delay=2 set pixlist=(09 08 07 05 04 03 02 01

Re: /bin/csh script in GELI partition crashes 6.3-STABLE

2008-02-12 Thread [EMAIL PROTECTED]@mgEDV.net
Subject: /bin/csh script in GELI partition crashes 6.3-STABLE things i ran into with GELI/UFS2+S: - geli partition sector size larger than 4KB caused panics on one of our boxes - fs sector size any than 512 sometimes caused hangs/watchdog reboots try setting up a kernel with debug-flags and

Re: /bin/csh script in GELI partition crashes 6.3-STABLE

2008-02-12 Thread Roland Smith
On Tue, Feb 12, 2008 at 08:02:49AM -0600, Scott Bennett wrote: > I just set up a GELI partition for the first time a while ago (not > counting the swap partition). After initializing the GELI device file, > filling it from /dev/random, running newfs, and copying over a couple of > directory t

Re: /bin/csh script in GELI partition crashes 6.3-STABLE

2008-02-12 Thread Ivan Voras
Scott Bennett wrote: > It does it every time, so it is certainly repeatable. Is this a > known problem? Or is there some feature of GELI-encrypted file systems > that is expected to have problems running scripts? (I do not know whether > the problem is limited to /bin/csh scr

/bin/csh script in GELI partition crashes 6.3-STABLE

2008-02-12 Thread Scott Bennett
GELI partition.) It does it every time, so it is certainly repeatable. Is this a known problem? Or is there some feature of GELI-encrypted file systems that is expected to have problems running scripts? (I do not know whether the problem is limited to /bin/csh scripts. After several crashes in j

Re: linux compat: path problem? /compat/linux/bin/sh doesn't work!

2008-02-11 Thread Reid Linnemann
Written by Steve Franks on 02/11/08 13:56>> > So my problem is that things are expecting libs in > /usr/compat/linux/lib instead of /usr/compat/linux/usr/lib, and when > they don't find it in linux/lib they go straight to the FreeBSD > version? > > So should I be fixing my path, or linking linux/u

Re: linux compat: path problem? /compat/linux/bin/sh doesn't work!

2008-02-11 Thread Michael Ross
Am 11.02.2008, 20:56 Uhr, schrieb Steve Franks <[EMAIL PROTECTED]>: So should I be fixing my path, or linking linux/usr/lib to linux/lib, or what? On Feb 11, 2008 12:06 PM, Reid Linnemann <[EMAIL PROTECTED]> wrote: work around this by linking /usr/compat/linux/usr/lib/librt.so.1 to the actu

Re: linux compat: path problem? /compat/linux/bin/sh doesn't work!

2008-02-11 Thread Steve Franks
So my problem is that things are expecting libs in /usr/compat/linux/lib instead of /usr/compat/linux/usr/lib, and when they don't find it in linux/lib they go straight to the FreeBSD version? So should I be fixing my path, or linking linux/usr/lib to linux/lib, or what? Steve On Feb 11, 2008 12

Re: linux compat: path problem? /compat/linux/bin/sh doesn't work!

2008-02-11 Thread Reid Linnemann
Written by Michael Ross on 02/11/08 12:42>> > Am 11.02.2008, 19:26 Uhr, schrieb Reid Linnemann <[EMAIL PROTECTED]>: > > >> It is not finding the FreeBSD versions of libraries. There is no >> /usr/lib/librt.so.1 in FreeBSD, that is linux's real-time threading >> library. Try brandelf /usr/compat/l

Re: linux compat: path problem? /compat/linux/bin/sh doesn't work!

2008-02-11 Thread Michael Ross
Am 11.02.2008, 19:26 Uhr, schrieb Reid Linnemann <[EMAIL PROTECTED]>: It is not finding the FreeBSD versions of libraries. There is no /usr/lib/librt.so.1 in FreeBSD, that is linux's real-time threading library. Try brandelf /usr/compat/linux/usr/lib/librt.so.1 to see if it's branded. [EMAIL

Re: linux compat: path problem? /compat/linux/bin/sh doesn't work!

2008-02-11 Thread Reid Linnemann
Written by Steve Franks on 02/11/08 12:11>> > I think my problem lies elsewhere: linux & abi started, but no > difference! I have the linux .so files right in compat/linux/usr/lib, > but it always finds the freeBSD versions first! > > Steve > > sh-3.00$ kldstat > Id Refs AddressSize Nam

Re: linux compat: path problem? /compat/linux/bin/sh doesn't work!

2008-02-11 Thread Wojciech Puchar
serafina# dmesg -a | grep -A1 ABI Additional ABI support: linux serafina# /etc/rc.d/abi restart Additional ABI support: linux. magic starts here. sorry. serafina# /compat/linux/bin/sh sh-3.00# ls ls: error while loading shared libraries: /usr/lib/librt.so.1: ELF file OS ABI invalid

Re: linux compat: path problem? /compat/linux/bin/sh doesn't work!

2008-02-11 Thread Steve Franks
I think my problem lies elsewhere: linux & abi started, but no difference! I have the linux .so files right in compat/linux/usr/lib, but it always finds the freeBSD versions first! Steve sh-3.00$ kldstat Id Refs AddressSize Name 1 19 0xc040 926ed4 kernel 21 0xc0d27000 5a74

Re: linux compat: path problem? /compat/linux/bin/sh doesn't work!

2008-02-11 Thread Michael Ross
tional ABI support: linux serafina# /etc/rc.d/abi restart Additional ABI support: linux. serafina# /compat/linux/bin/sh sh-3.00# ls ls: error while loading shared libraries: /usr/lib/librt.so.1: ELF file OS ABI invalid Michael ___ freebsd-question

Re: linux compat: path problem? /compat/linux/bin/sh doesn't work!

2008-02-11 Thread Wojciech Puchar
if not set it and rerun /etc/rc.d/abi serafina# kldload linux serafina# /etc/rc.d/abi start Additional ABI support:. should be Additional ABI support:linux. you miss linux_enable="YES" in rc.conf ___ freebsd-questions@freebsd.org mailing list h

Re: linux compat: path problem? /compat/linux/bin/sh doesn't work!

2008-02-11 Thread Michael Ross
Am 11.02.2008, 18:20 Uhr, schrieb Wojciech Puchar <[EMAIL PROTECTED]>: did you have linux_enable="YES" in your rc.conf if not set it and rerun /etc/rc.d/abi serafina# kldload linux serafina# /etc/rc.d/abi start Additional ABI support:. serafina# /compat/linux/bin/s

Re: linux compat: path problem? /compat/linux/bin/sh doesn't work!

2008-02-11 Thread Wojciech Puchar
sh-3.00$ ls ls: error while loading shared libraries: /usr/lib/librt.so.1: ELF file OS ABI invalid sh-3.00$ Sothat don't seem right. How do I get /compat/linux/bin/sh to work right? New .shrc file? Something I missed? [EMAIL PROTECTED] ~]$ /compat/linux/bin/

linux compat: path problem? /compat/linux/bin/sh doesn't work!

2008-02-11 Thread Steve Franks
I think I have a major problem with my linux compatibility. It started when a third party setup program complained about ELF ABI types on a shared library, so I did a little experiment: > /compat/linux/bin/sh sh-3.00$ ls ls: error while loading shared libraries: /usr/lib/librt.so.1: ELF file

Re: MAGIC: /usr/local/bin/bash: bad interpreter: Permission denied

2008-01-29 Thread Wojciech Puchar
what's up? My SWAG is that the directory is in a mounted file system with ``noexec'' as a security measure. EXACTLY. thanks for Derek Ragona <[EMAIL PROTECTED]> for helping me to find it :) ___ freebsd-questions@freebsd.org mailing list http://

Re: MAGIC: /usr/local/bin/bash: bad interpreter: Permission denied

2008-01-29 Thread Bill Campbell
On Tue, Jan 29, 2008, Wojciech Puchar wrote: >i've got on one of my servers on just one account >when trying to run bash script (it is set to executable) > >doing > >bash ./scriptname > >instead of > >./scriptname > >helps BUT > >on other accounts, or root account - it works. > >what's up? My SWAG

Re: MAGIC: /usr/local/bin/bash: bad interpreter: Permission denied

2008-01-29 Thread Wojciech Puchar
Check your script then, add: set -x near the top and see where it is complaining. as i don't understand clearly where this set -x should be, i try 2 times: 1) $ cat 1 #!/usr/local/bin/bash echo abc $ set -x $ ./1 + ./1 -bash: ./1: /usr/local/bin/bash: bad interpreter: Permission deni

Re: MAGIC: /usr/local/bin/bash: bad interpreter: Permission denied

2008-01-29 Thread Derek Ragona
At 10:11 AM 1/29/2008, Wojciech Puchar wrote: Your script likely has as the first line: #!/usr/local/bin/bash I would suspect /usr/local/bin is not in the path of the problem accounts or $ echo $PATH /bin:/usr/bin:/usr/games:/usr/local/bin:/usr/X11R6/bin:/smietnik/tmp/bin $ echo $PATH /bin

Re: MAGIC: /usr/local/bin/bash: bad interpreter: Permission denied

2008-01-29 Thread Wojciech Puchar
Your script likely has as the first line: #!/usr/local/bin/bash I would suspect /usr/local/bin is not in the path of the problem accounts or $ echo $PATH /bin:/usr/bin:/usr/games:/usr/local/bin:/usr/X11R6/bin:/smietnik/tmp/bin $ echo $PATH /bin:/usr/bin:/usr/games:/usr/local/bin:/usr/X11R6

Re: MAGIC: /usr/local/bin/bash: bad interpreter: Permission denied

2008-01-29 Thread Wojciech Puchar
what's up? Now that's some seriously weird shit. I've been toying around with it for a while, but so far I've been unable to reproduce the problem. me too. just SINGLE account. created same way as others. to make things more fun - it uses /usr/local/bin/b

Re: MAGIC: /usr/local/bin/bash: bad interpreter: Permission denied

2008-01-29 Thread Derek Ragona
our script likely has as the first line: #!/usr/local/bin/bash I would suspect /usr/local/bin is not in the path of the problem accounts or isn't in /etc/shells, or is restricted to run for only some users and groups. Check the bash executable doing: ls -al /usr/local/bin/bash it should b

Re: MAGIC: /usr/local/bin/bash: bad interpreter: Permission denied

2008-01-29 Thread Alphons "Fonz" van Werven
Wojciech Puchar wrote: what's up? Now that's some seriously weird shit. I've been toying around with it for a while, but so far I've been unable to reproduce the problem. Alphons -- VISTA - Viruses Intruders Spyware Trojans Adware ___ freebsd-que

MAGIC: /usr/local/bin/bash: bad interpreter: Permission denied

2008-01-29 Thread Wojciech Puchar
i've got on one of my servers on just one account when trying to run bash script (it is set to executable) doing bash ./scriptname instead of ./scriptname helps BUT on other accounts, or root account - it works. what's up? ___ freebsd-questions@

Re: is there a /bin/sh method to tell the ending of a file

2008-01-08 Thread Christopher Cowart
hether a string//filename ends in > } > *.gz? using /bin/sh? > > } Is this what you mean? > } > } - > } #!/bin/sh > } > } STRING="mystring.gz" > } > } if [ ".gz" = "`echo \"$STRING\" | sed -n 's/.*\(\.

Re: is there a /bin/sh method to tell the ending of a file

2008-01-08 Thread Christian Baer
On Tue, 8 Jan 2008 02:27:29 -0600 Paul Procacci wrote: > And for what it's worth, I agree that what I provided wasn't pretty, but at > least it gives everyone something to stare at for a while. ;P Great, just like a bad accident on a major road. It isn't pretty, but you just have to look. :-> R

Re: is there a /bin/sh method to tell the ending of a file

2008-01-08 Thread Paul Procacci
On Mon, Jan 07, 2008 at 11:41:35PM -0800, Gary Kline wrote: > On Mon, Jan 07, 2008 at 11:34:08PM -0600, Paul Procacci wrote: > > Is this what you mean? > > > > ----- > > #!/bin/sh > > > > STRING="mystring.gz" > > > >

Re: is there a /bin/sh method to tell the ending of a file

2008-01-07 Thread Gary Kline
On Mon, Jan 07, 2008 at 11:34:08PM -0600, Paul Procacci wrote: > Is this what you mean? > > ----- > #!/bin/sh > > STRING="mystring.gz" > > if [ ".gz" = "`echo \"$STRING\" | sed -n 's/.*\(\.gz\)$/\1/p'

Re: is there a /bin/sh method to tell the ending of a file

2008-01-07 Thread Gary Kline
hether a string//filename ends in > } > *.gz? using /bin/sh? I spend around 20 minutes cobbling together > } > scripts to burn ISO files last night. Then blindly wasted one CD-R file > that > } > was gzipped. tar barfs on you,but cdrecord dev=foo.gz writes > } >

Re: is there a /bin/sh method to tell the ending of a file

2008-01-07 Thread John Levine
>- >#!/bin/sh > >if [ ".gz" = "`echo \"$STRING\" | sed -n 's/.*\(\.gz\)$/\1/p'`" ]; then > echo test; >fi E. I think that we can now safely take advantage of features added to the shell in the late 1970s. --

Re: is there a /bin/sh method to tell the ending of a file

2008-01-07 Thread Jon Hamilton
} On Mon, Jan 07, 2008 at 09:10:58PM -0800, Gary Kline wrote: } Paul Procacci <[EMAIL PROTECTED]>, said on Mon Jan 07, 2008 [11:34:08 PM]: } > Hi All, } > } > Is there an easy way of determing whether a string//filename ends in } > *.gz? using /bin/sh? I spend around 20 minutes

Re: is there a /bin/sh method to tell the ending of a file

2008-01-07 Thread Paul Procacci
/Gulp Guess I'm too `new` skool! ;-P Cheers! On Tue, Jan 08, 2008 at 12:47:53AM -0500, John Levine wrote: > >----- > >#!/bin/sh > > > >if [ ".gz" = "`echo \"$STRING\" | sed -n 's/.*\(\.gz\)$/\1/p'`" ]; then

Re: is there a /bin/sh method to tell the ending of a file

2008-01-07 Thread Bill Campbell
On Mon, Jan 07, 2008, Paul Procacci wrote: >Is this what you mean? > >----- >#!/bin/sh > >STRING="mystring.gz" > >if [ ".gz" = "`echo \"$STRING\" | sed -n 's/.*\(\.gz\)$/\1/p'`" ]; then > echo test; >

<    1   2   3   4   5   6   >