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
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
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
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
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
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
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
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-
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
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
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
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
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
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
> 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
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
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
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
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:
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,
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
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
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
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
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
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
>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 "~
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
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 ~/
> > 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
> >
&
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
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
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
"~/
Здравствуйте, 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
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
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
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
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
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
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=\&
--- 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,
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
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
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
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
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
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
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
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
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
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
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
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
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
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?
>
>
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
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
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.
:
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
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 &)
> >>
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
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
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
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 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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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/
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
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://
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
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
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
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
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
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
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
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@
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/.*\(\.
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
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"
> >
> >
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'
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
> } >
>-
>#!/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.
--
} 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
/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
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;
>
201 - 300 of 575 matches
Mail list logo