Command line



Hi,

Really don't understand....

I have a script file with some lines like :

script.sh (permission 777 and executed as root)
mkdir /opt/cccc
mkdir /opt/fff
.....

I am logged as root

If I copy each line and I paste into Command line => Works fine
If I start the script (./script.sh) => I have some messages like "cannot create the directory" ?!?!?!??!

Any idea what could it be ?

Regards,

.



Relevant Pages

  • Re: Command line
    ... I have a script file with some lines like: ... mkdir /opt/cccc ... I am logged as root ... needed if you execute it from your own shell. ...
    (linux.redhat)
  • Re: Command line
    ... I have a script file with some lines like: ... mkdir /opt/cccc ... I am logged as root ...
    (linux.redhat)
  • Re: installing modules on shared server continued
    ... to be root (mkdir /root/.cpan: Permission denied....) ... How do I make the CPAN shell want to use my own little user space on this ...
    (comp.lang.perl.misc)
  • Re: mkdir error
    ... Jay Hill adjusted his tin foil beanie and asbestos underwear to write: ... > I don't understand what mkdir is telling me. ... rwxr-xr-x root root ...
    (alt.os.linux.suse)
  • Re: Edit file on server?
    ... sudo aptitude install sshfs ... mkdir ~/html ... unless that is the result of login as root in the first place. ...
    (alt.os.linux)