|
List Info
Thread: campsite-backup-instance fails, popd & pushd not in shell
|
|
| campsite-backup-instance fails, popd
& pushd not in shell |

|
2006-07-28 15:51:37 |
|
What Campsite version are you using? I couldn't find any "#!/bin/sh" tag in install scripts.
Mugur
Erik Dal�n <dalen jpl.se> wrote:Hi
It fails with the following error: * Creating tarball...sh: pushd: not found sh: popd: not found
ERROR! Unable to create temporary archive. You may not have the right to write to the current directory. Please set the current directory to a location where you have the right to write.
As pushd and popd are builtins in ksh and bash but not in sh they cant be found when sh is used as shell. Question is, how do I make php use bash instead of sh for exec? And can it be fixed in the campsite source instead of in the php configs?
-- Erik Dal�n
See the all-new, redesigned Yahoo.com. Check it out.
|
| campsite-backup-instance fails, popd
& pushd not in shell |

|
2006-07-30 07:50:23 |
2.6
It's php that uses /bin/sh to execute exec()
calls.
Mugur Rus wrote:
> What Campsite version are you using? I couldn't find
any "#!/bin/sh" tag in install scripts.
>
> Mugur
>
> Erik Dal�n <dalen jpl.se> wrote:Hi
>
> It fails with the following error:
> * Creating tarball...sh: pushd: not found
> sh: popd: not found
>
> ERROR!
> Unable to create temporary archive.
> You may not have the right to write to the current
directory.
> Please set the current directory to a location where
you have
> the right to write.
>
>
> As pushd and popd are builtins in ksh and bash but not
in sh they cant
> be found when sh is used as shell. Question is, how do
I make php use
> bash instead of sh for exec? And can it be fixed
in the campsite source
> instead of in the php configs?
>
> --
> Erik Dal�n
>
>
>
> ---------------------------------
> See the all-new, redesigned Yahoo.com. Check it out.
|
|
| campsite-backup-instance fails, popd
& pushd not in shell |

|
2006-07-30 16:43:32 |
|
We're using exec() PHP function to run these commands, I don't know if you can configure the PHP module what shell to run. But I didn't have any problem with this before, even in FreeBSD it works ok. Try the following: - rename /bin/sh to /bin/sh.bak - create a symbolic link to /bin/bash: ln -s /bin/bash /bin/sh
Regards, Mugur
Erik Dalén <dalen jpl.se> wrote: 2.6
It's php that uses /bin/sh to execute exec() calls.
Mugur Rus wrote: > What Campsite version are you using? I couldn't find any "#!/bin/sh" tag in install scripts. > > Mugur > > Erik Dal�n jpl.se> wrote:Hi > > It fails with the following error: > * Creating tarball...sh: pushd: not found > sh: popd: not found > > ERROR! > Unable to create temporary
archive. > You may not have the right to write to the current directory. > Please set the current directory to a location where you have > the right to write. > > > As pushd and popd are builtins in ksh and bash but not in sh they cant > be found when sh is used as shell. Question is, how do I make php use > bash instead of sh for exec? And can it be fixed in the campsite source > instead of in the php configs? > > -- > Erik Dal�n > > > > --------------------------------- > See the all-new, redesigned Yahoo.com. Check it out.
jpl.se>
Do you Yahoo!?
Get on board. You're invited to try the new Yahoo! Mail Beta. |
| campsite-backup-instance fails, popd
& pushd not in shell |

|
2006-07-30 17:07:37 |
As I already wrote before, on FreeBSD I searched for
external tools and
patched the campsite sources.
I would recommend this way of fixing and not to replace sh
with bash. On
most linux distribution the default shell is bash, but for
example on
FreeBSD this step might cause a huge problems on OS basic
scripts (rc
scripts and others) because those use standard sh.
Therefore be carefull about the suggested solution and
rather change
campsite sources to suit your system, than to make your
system to suit
campsite.
Ondra
On Sun, 2006-07-30 at 09:43 -0700, Mugur Rus wrote:
> We're using exec() PHP function to run these commands,
I don't know if
> you can configure the PHP module what shell to run. But
I didn't have
> any problem with this before, even in FreeBSD it works
ok. Try the
> following:
> - rename /bin/sh to /bin/sh.bak
> - create a symbolic link to /bin/bash: ln -s /bin/bash
/bin/sh
>
> Regards,
> Mugur
>
> Erik Dalén <dalen jpl.se> wrote:
> 2.6
>
> It's php that uses /bin/sh to execute exec()
calls.
>
> Mugur Rus wrote:
> > What Campsite version are you using? I
couldn't find any
> "#!/bin/sh" tag in install scripts.
> >
> > Mugur
> >
> > Erik Dal�n wrote:Hi
> >
> > It fails with the following error:
> > * Creating tarball...sh: pushd: not found
> > sh: popd: not found
> >
> > ERROR!
> > Unable to create temporary archive.
> > You may not have the right to write to the
current
> directory.
> > Please set the current directory to a
location where you
> have
> > the right to write.
> >
> >
> > As pushd and popd are builtins in ksh and
bash but not in sh
> they cant
> > be found when sh is used as shell.
Question is, how do I
> make php use
> > bash instead of sh for exec? And
can it be fixed in the
> campsite source
> > instead of in the php configs?
> >
> > --
> > Erik Dal�n
> >
> >
> >
> > ---------------------------------
> > See the all-new, redesigned Yahoo.com.
Check it out.
>
>
>
>
>
>
____________________________________________________________
__________
> Do you Yahoo!?
> Get on board. You're invited to try the new Yahoo!
Mail Beta.
|
|
| campsite-backup-instance fails, popd
& pushd not in shell |

|
2006-07-30 17:13:09 |
|
Ondra, can you provide a patch to fix this issue?
Ondra Koutek <kouteko tol.org> wrote: As I already wrote before, on FreeBSD I searched for external tools and patched the campsite sources. I would recommend this way of fixing and not to replace sh with bash. On most linux distribution the default shell is bash, but for example on FreeBSD this step might cause a huge problems on OS basic scripts (rc scripts and others) because those use standard sh.
Therefore be carefull about the suggested solution and rather change campsite sources to suit your system, than to make your system to suit campsite.
Ondra
On Sun, 2006-07-30 at 09:43 -0700, Mugur Rus wrote: > We're using exec() PHP function to run these commands, I don't know if > you can configure the PHP module what shell to run.
But I didn't have > any problem with this before, even in FreeBSD it works ok. Try the > following: > - rename /bin/sh to /bin/sh.bak > - create a symbolic link to /bin/bash: ln -s /bin/bash /bin/sh > > Regards, > Mugur > > Erik Dalén jpl.se> wrote: > 2.6 > > It's php that uses /bin/sh to execute exec() calls. > > Mugur Rus wrote: > > What Campsite version are you using? I couldn't find any > "#!/bin/sh" tag in install scripts. > > > > Mugur > > > > Erik Dal�n wrote:Hi > > > > It fails with the following error: > > * Creating tarball...sh: pushd: not found > > sh: popd: not found > > > > ERROR! > > Unable to create
temporary archive. > > You may not have the right to write to the current > directory. > > Please set the current directory to a location where you > have > > the right to write. > > > > > > As pushd and popd are builtins in ksh and bash but not in sh > they cant > > be found when sh is used as shell. Question is, how do I > make php use > > bash instead of sh for exec? And can it be fixed in the > campsite source > > instead of in the php configs? > > > > -- > > Erik Dal�n > > > > > > > > --------------------------------- > > See the all-new, redesigned Yahoo.com. Check it out. > > >
> > > ______________________________________________________________________ > Do you Yahoo!? > Get on board. You're invited to try the new Yahoo! Mail Beta.
jpl.se>
How low will we go? Check out Yahoo! Messenger’s low PC-to-Phone call rates. |
| campsite-backup-instance fails, popd
& pushd not in shell |

|
2006-07-30 17:26:00 |
It is a pitty I cannot, as I do not use patch in fact, but
FreeBSD port
has its own method for find/replace strings and I used this.
I sent you
all I know by yahoo messenget though.
Ondra
On Sun, 2006-07-30 at 10:13 -0700, Mugur Rus wrote:
> Ondra, can you provide a patch to fix this issue?
>
>
> Ondra Koutek <kouteko tol.org> wrote:
> As I already wrote before, on FreeBSD I
searched for external
> tools and
> patched the campsite sources.
> I would recommend this way of fixing and not to
replace sh
> with bash. On
> most linux distribution the default shell is
bash, but for
> example on
> FreeBSD this step might cause a huge problems
on OS basic
> scripts (rc
> scripts and others) because those use standard
sh.
>
> Therefore be carefull about the suggested
solution and rather
> change
> campsite sources to suit your system, than to
make your system
> to suit
> campsite.
>
> Ondra
>
> On Sun, 2006-07-30 at 09:43 -0700, Mugur Rus
wrote:
> > We're using exec() PHP function to run
these commands, I
> don't know if
> > you can configure the PHP module what
shell to run. But I
> didn't have
> > any problem with this before, even in
FreeBSD it works ok.
> Try the
> > following:
> > - rename /bin/sh to /bin/sh.bak
> > - create a symbolic link to /bin/bash: ln
> -s /bin/bash /bin/sh
> >
> > Regards,
> > Mugur
> >
> > Erik Dalén wrote:
> > 2.6
> >
> > It's php that uses /bin/sh to execute
exec() calls.
> >
> > Mugur Rus wrote:
> > > What Campsite version are you using?
I couldn't find any
> > "#!/bin/sh" tag in install
scripts.
> > >
> > > Mugur
> > >
> > > Erik Dal�n wrote:Hi
> > >
> > > It fails with the following error:
> > > * Creating tarball...sh: pushd: not
found
> > > sh: popd: not found
> > >
> > > ERROR!
> > > Unable to create temporary archive.
> > > You may not have the right to write
to the current
> > directory.
> > > Please set the current directory to a
location where you
> > have
> > > the right to write.
> > >
> > >
> > > As pushd and popd are builtins in ksh
and bash but not in
> sh
> > they cant
> > > be found when sh is used as shell.
Question is, how do I
> > make php use
> > > bash instead of sh for exec? And
can it be fixed in the
> > campsite source
> > > instead of in the php configs?
> > >
> > > --
> > > Erik Dal�n
> > >
> > >
> > >
> > > ---------------------------------
> > > See the all-new, redesigned
Yahoo.com. Check it out.
> >
> >
> >
> >
> >
> >
>
____________________________________________________________
__________
> > Do you Yahoo!?
> > Get on board. You're invited to try the
new Yahoo! Mail
> Beta.
>
>
>
>
>
>
____________________________________________________________
__________
> How low will we go? Check out Yahoo! Messenger’s low
PC-to-Phone call
> rates.
|
|
| campsite-backup-instance fails, popd
& pushd not in shell |

|
2006-07-30 17:55:10 |
|
Hi Erik,
Please install the attached scripts (campsite-restore-instance.php and cli_script_lib.php) into the campsite bin directory (by default /usr/local/campsite/bin). It should fix your problem.
Regards, Mugur
Erik Dalén <dalen jpl.se> wrote: 2.6
It's php that uses /bin/sh to execute exec() calls.
Mugur Rus wrote: > What Campsite version are you using? I couldn't find any "#!/bin/sh" tag in install scripts. > > Mugur > > Erik Dal�n jpl.se> wrote:Hi > > It fails with the following error: > * Creating tarball...sh: pushd: not found > sh: popd: not found > > ERROR! > Unable to create temporary archive. > You may not have the right to write to the current directory. > Please set the current directory to a
location where you have > the right to write. > > > As pushd and popd are builtins in ksh and bash but not in sh they cant > be found when sh is used as shell. Question is, how do I make php use > bash instead of sh for exec? And can it be fixed in the campsite source > instead of in the php configs? > > -- > Erik Dal�n > > > > --------------------------------- > See the all-new, redesigned Yahoo.com. Check it out.
jpl.se>
Do you Yahoo!? Next-gen email? Have it all with the all-new Yahoo! Mail Beta. |
| campsite-backup-instance fails, popd
& pushd not in shell |

|
2006-08-10 14:21:25 |
thanks, this worked. I hope it will be included in the next
version.
Mugur Rus wrote:
> Hi Erik,
>
> Please install the attached scripts
(campsite-restore-instance.php and
> cli_script_lib.php) into the campsite bin directory (by
default
> /usr/local/campsite/bin). It should fix your problem.
>
> Regards,
> Mugur
>
> */Erik Dalén <dalen jpl.se>/* wrote:
>
> 2.6
>
> It's php that uses /bin/sh to execute exec()
calls.
>
> Mugur Rus wrote:
> > What Campsite version are you using? I
couldn't find any
> "#!/bin/sh" tag in install scripts.
> >
> > Mugur
> >
> > Erik Dal�n wrote:Hi
> >
> > It fails with the following error:
> > * Creating tarball...sh: pushd: not found
> > sh: popd: not found
> >
> > ERROR!
> > Unable to create temporary archive.
> > You may not have the right to write to the
current directory.
> > Please set the current directory to a location
where you have
> > the right to write.
> >
> >
> > As pushd and popd are builtins in ksh and bash
but not in sh they cant
> > be found when sh is used as shell. Question
is, how do I make php use
> > bash instead of sh for exec? And can it be fixed
in the campsite
> source
> > instead of in the php configs?
> >
> > --
> > Erik Dal�n
> >
> >
> >
> > ---------------------------------
> > See the all-new, redesigned Yahoo.com. Check
it out.
>
>
>
------------------------------------------------------------
------------
> Do you Yahoo!?
> Next-gen email? Have it all with the all-new Yahoo!
Mail Beta.
> <http://us.rd.yahoo.com/evt=
42241/*http://advision.webevents.yahoo.com/handraisers>
a>
>
--
Erik Dalén
dalen jpl.se
http://www.jpl.se/~dalen/
a>
|
|
| campsite-backup-instance fails, popd
& pushd not in shell |

|
2006-08-10 15:43:28 |
|
Yes, it will be in 2.6.1.
On 8/10/06, Erik Dalén <jpl.se">dalen jpl.se> wrote:
thanks, this worked. I hope it will be included in the next version.
Mugur Rus wrote: > Hi Erik, > > Please install the attached scripts (campsite-restore-instance.php and > cli_script_lib.php) into the campsite bin directory (by default
> /usr/local/campsite/bin). It should fix your problem. > > Regards, > Mugur > > */Erik Dalén <jpl.se">dalen jpl.se>/* wrote: > > 2.6
> > It's php that uses /bin/sh to execute exec() calls. > > Mugur Rus wrote: > > What Campsite version are you using? I couldn't find any > "#!/bin/sh" tag in install scripts.
> > > > Mugur > > > > Erik Dal�n wrote:Hi > > > > It fails with the following error: > > * Creating tarball...sh: pushd: not found
> > sh: popd: not found > > > > ERROR! > > Unable to create temporary archive. > > You may not have the right to write to the current directory. > > Please set the current directory to a location where you have
> > the right to write. > > > > > > As pushd and popd are builtins in ksh and bash but not in sh they cant > > be found when sh is used as shell. Question is, how do I make php use
> > bash instead of sh for exec? And can it be fixed in the campsite > source > > instead of in the php configs? > > > > -- > > Erik Dal�n
> > > > > > > > --------------------------------- > > See the all-new, redesigned Yahoo.com. Check it out. > > > ------------------------------------------------------------------------
> Do you Yahoo!? > Next-gen email? Have it all with the all-new Yahoo! Mail Beta. > <http://us.rd.yahoo.com/evt=42241/*http://advision.webevents.yahoo.com/handraisers
> >
-- Erik Dalén jpl.se">dalen jpl.se http://www.jpl.se/~dalen/
|
| campsite-backup-instance fails, popd
& pushd not in shell |

|
2006-08-10 16:49:33 |
of course
--- Erik Dalén <dalen jpl.se> wrote:
> thanks, this worked. I hope it will be included in the
next version.
>
> Mugur Rus wrote:
> > Hi Erik,
> >
> > Please install the attached scripts
(campsite-restore-instance.php and
> > cli_script_lib.php) into the campsite bin
directory (by default
> > /usr/local/campsite/bin). It should fix your
problem.
> >
> > Regards,
> > Mugur
> >
> > */Erik Dalén <dalen jpl.se>/* wrote:
> >
> > 2.6
> >
> > It's php that uses /bin/sh to execute exec()
calls.
> >
> > Mugur Rus wrote:
> > > What Campsite version are you using? I
couldn't find any
> > "#!/bin/sh" tag in install
scripts.
> > >
> > > Mugur
> > >
> > > Erik Dal�n wrote:Hi
> > >
> > > It fails with the following error:
> > > * Creating tarball...sh: pushd: not found
> > > sh: popd: not found
> > >
> > > ERROR!
> > > Unable to create temporary archive.
> > > You may not have the right to write to
the current directory.
> > > Please set the current directory to a
location where you have
> > > the right to write.
> > >
> > >
> > > As pushd and popd are builtins in ksh and
bash but not in sh they
> cant
> > > be found when sh is used as shell.
Question is, how do I make php use
> > > bash instead of sh for exec? And
can it be fixed in the campsite
> > source
> > > instead of in the php configs?
> > >
> > > --
> > > Erik Dal�n
> > >
> > >
> > >
> > > ---------------------------------
> > > See the all-new, redesigned Yahoo.com.
Check it out.
> >
> >
> >
------------------------------------------------------------
------------
> > Do you Yahoo!?
> > Next-gen email? Have it all with the all-new
Yahoo! Mail Beta.
> >
>
<http://us.rd.yahoo.com/evt=
42241/*http://advision.webevents.yahoo.com/handraisers>
a>
> >
>
>
> --
> Erik Dalén
> dalen jpl.se
> http://www.jpl.se/~dalen/
a>
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection
around
http://mail.yahoo.com
|
|
[1-10]
|
|