|
||||||
| Forums FAQ | Members List | Search | Today's Posts | Mark Forums Read |
| Applications Questions about desktops (KDE, Gnome, XFCE, etc.), software applications (configuration, usage, bugs, documentation) |
![]() |
|
|
|
LinkBack | Thread Tools | Display Modes |
|
||||
|
It can not find the interpreter /bin/sh. And of course will not do anything then.
In my system /bin/sh is a symbolic link to /bin/bash. I do not know about yours. In any case you could change your shebang to #!/bin/bash because it will use bash in any case and mentioning sh would some give the idea that you wanted to use the Posix shell (or even the Bourne shell). Make the change and execute as root to see if the error is gone (and the result you want is achieved). boot.local is 'sourced' from the bootscripts, so no shebang needed there (and consequently no error) because it will not be interpreted.
__________________
Henk van Velden |
|
||||
|
Well in my system /bin/sh is also a symlink to /bin/bash. I changed #!/bin/sh to #!bin/bash and it made no difference, just get the bad interpretor error again. That is trying to execute it as root from the Terminal.
I don't know. Something is not right with this.
__________________
IBM Thinkpad X60s | Intel L2400 | Intel 945GM | 3GB | openSuSE 11.1 | KDE4.3.3 ASUS M3N78 | AMD 64x2 5400+ | nvidia 8200+ | 2GB | openSUSE 11.2 | KDE4.3.3 |
|
||||
|
Quote:
Code:
#!bin/bash Code:
#!/bin/bash Code:
boven:~ # /path/to/your/script
__________________
Henk van Velden |
|
||||
|
Yes, sorry it was a typo on my part. It is typed correctly in the script. The frustration was creeping in
![]() I finally solved it . I moved the script to my home folder and it just started working. Before I had it on another partition that I use for my work files. I don't know why it wouldn't work on the other partition when I was entering the full path to partition and script.I'm sorry for wasting your time.
__________________
IBM Thinkpad X60s | Intel L2400 | Intel 945GM | 3GB | openSuSE 11.1 | KDE4.3.3 ASUS M3N78 | AMD 64x2 5400+ | nvidia 8200+ | 2GB | openSUSE 11.2 | KDE4.3.3 |
|
||||
|
You are not wasting my time. We are here as volunteers trying to help each other. When I thought this was time wasting, I would go doing other things
![]() As this is a root script, the proper place to put it might be in /root/bin/. This is within roots home directory. Roots home directory is at this place, and not within /home, so that it is always there when / is there (and /home maybe not mounted due to problems). That other 'not working' partition is that 'a not Linux type' of fs (like Windows one)? (I do not like to leave loose, not understood, problems behind, even if you are satisfied with a now working script).
__________________
Henk van Velden |
|
||||
|
The other partition is a Linux ext3 partition I created (which I called /VAULT) which is additional to the standard /, /home, /swap, /boot partitions I have.
It's on the same physical HDD. I'm still getting used to the file system and directory structure in Linux. The only reason I wanted to place the script in the vault partition is that if I ever have to reinstall openSUSE then all my config scripts will be safe and I won't have to go hunting all over for my scripts.
__________________
IBM Thinkpad X60s | Intel L2400 | Intel 945GM | 3GB | openSuSE 11.1 | KDE4.3.3 ASUS M3N78 | AMD 64x2 5400+ | nvidia 8200+ | 2GB | openSUSE 11.2 | KDE4.3.3 |
|
||||
|
Quote:
How to chnage owner from rooot - openSUSE Forums Changing Owner Of A Drive, Change owner from root to user - Page 2 - openSUSE Forums |
|
||||
|
Quote:
Nevertheless some remarks to make you (i hope) more "getting used to ...". . Maybe reading SDB:Basics of partitions, filesystems, mount points - openSUSE can help you here. . After reading this link it should be clear to you that mounting it at /VAULT is at your own discretion. It could also be mounted at /home/your-uid/vault (most Unix/Linux users are not going for capitals normaly, but again, it is your choice!) or anywhere else within your dierectory tree. . It is not /Swap, it is not mounted, it is used as Swap.
__________________
Henk van Velden |
|
||||
|
Just reading vendetta18's post.
Of course ownership and permission-bits of /VAULT are as important as they are of any directory in the tree leading to your script.
__________________
Henk van Velden |
![]() |
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|