List Info

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




campsite-backup-instance fails, popd & pushd not in shell
user name
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 <dalenjpl.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
user name
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 <dalenjpl.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
user name
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 <dalenjpl.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.
&gt;
> Mugur
>
> Erik Dal�n jpl.se> wrote:Hi
&gt;
> It fails with the following error:
>; * Creating tarball...sh: pushd: not found
> sh: popd: not found
>
> ERROR!
>; Unable to create temporary archive.
&gt; 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?
&gt;
> --
> Erik Dal�n
&gt;
>
>
> ---------------------------------
> 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
user name
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 <dalenjpl.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
user name
2006-07-30 17:13:09
Ondra, can you provide a patch to fix this issue?


Ondra Koutek <koutekotol.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
&gt;
> Regards,
&gt; 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.
&gt; >
> > Mugur
> >
> > Erik Dal�n wrote:Hi
&gt; >
> > It fails with the following error:
>; > * Creating tarball...sh: pushd: not found
> > sh: popd: not found
> >
> > ERROR!
>; > Unable to create temporary archive.
&gt; > You may not have the right to write to the current
&gt; 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?
&gt; >
> > --
> > Erik Dal�n
&gt; >
> >
> >
> > ---------------------------------
> > See the all-new, redesigned Yahoo.com. Check it out.
>
>
>
>
>
> ______________________________________________________________________
> Do you Yahoo!?
&gt; 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
user name
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 <koutekotol.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
user name
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 <dalenjpl.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.
&gt;
> Mugur
>
> Erik Dal�n jpl.se> wrote:Hi
&gt;
> It fails with the following error:
>; * Creating tarball...sh: pushd: not found
> sh: popd: not found
>
> ERROR!
>; Unable to create temporary archive.
&gt; 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?
&gt;
> --
> Erik Dal�n
&gt;
>
>
> ---------------------------------
> 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
user name
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 <dalenjpl.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
dalenjpl.se
http://www.jpl.se/~dalen/
campsite-backup-instance fails, popd & pushd not in shell
user name
2006-08-10 15:43:28
Yes, it will be in 2.6.1.

On 8/10/06, Erik Dalén <jpl.se">dalenjpl.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
&gt; /usr/local/campsite/bin). It should fix your problem.
&gt;
> Regards,
&gt; Mugur
>
> */Erik Dalén <jpl.se">dalenjpl.se>;/* wrote:
>;
; &nbsp;  2.6
>
> &nbsp;   It's php that uses /bin/sh to execute exec() calls.
>;
; &nbsp;  Mugur Rus wrote:
>; &nbsp; &nbsp; > What Campsite version are you using? I couldn't find any
>&nbsp; &nbsp;  "#!/bin/sh" tag in install scripts.
> &nbsp;   >
>&nbsp;   ; > Mugur
>  ; &nbsp; >
>&nbsp;   ; > Erik Dal�n wrote:Hi
&gt; &nbsp; &nbsp; >
>&nbsp;   ; > It fails with the following error:
>; &nbsp; &nbsp; > * Creating tarball...sh: pushd: not found
>; &nbsp; &nbsp; > sh: popd: not found
>  ; &nbsp; >
>&nbsp;   ; > ERROR!
>; &nbsp; &nbsp; > Unable to create temporary archive.
&gt; &nbsp; &nbsp; > You may not have the right to write to the current directory.
  ;  > Please set the current directory to a location where you have
>  ; &nbsp; > the right to write.
>; &nbsp; &nbsp; >
>&nbsp;   ; >
>&nbsp;   ; > As pushd and popd are builtins in ksh and bash but not in sh they cant
>&nbsp;   ; > be found when sh is used as shell. Question is, how do I make php use
>&nbsp;   ; > bash instead of sh for exec? And can it be fixed in the campsite
&gt; &nbsp; &nbsp; source
>; &nbsp; &nbsp; > instead of in the php configs?
&gt; &nbsp; &nbsp; >
>&nbsp;   ; > --
>&nbsp; &nbsp;  > Erik Dal�n
&gt; &nbsp; &nbsp; >
>&nbsp;   ; >
>&nbsp;   ; >
>&nbsp;   ; > ---------------------------------
; &nbsp;  > See the all-new, redesigned Yahoo.com. Check it out.
>
>
> ------------------------------------------------------------------------
&gt; Do you Yahoo!?
&gt; 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">dalenjpl.se
http://www.jpl.se/~dalen/

campsite-backup-instance fails, popd & pushd not in shell
user name
2006-08-10 16:49:33
of course

--- Erik Dalén <dalenjpl.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 <dalenjpl.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
> dalenjpl.se
> http://www.jpl.se/~dalen/
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection
around 
http://mail.yahoo.com 
[1-10]

about | contact  Other archives ( Real Estate discussion Medical topics )