Script does not work when place in Startup directory
I have this in my Startup directory, but it never starts.
Anyone know why ? Script works fine from a console. #!/bin/bash # # # # /usr/bin/seamonkey |
i usually put startup commands in my ~/.bash_profile or ~/.profile.
|
A better place might be to include that in your ~/.xinitrc or your DE's startup script (ex: ~/.fluxbox/startup). That way it is explicitly tied to your current X session.
|
I put the command in .profile but it does not start seamonkey.
Quote:
|
Quote:
But it is entirely possible that your ~/.profile file is not being executed. Do you have a ~/.bash_profile file? If so, from man bash... Code:
INVOCATION |
I forgot to do this with my script. :-)
chmod +x *.sh Is the reason that .sh files are not executable by default for security reasons ? I know that scripts can wipe out the O.S. rather easily as I have often found out. Thank God for backups. :-) |
Quote:
A .txt file can be made executable, and a .sh file can be made non-executable, filename extension has no part in determining the executable status. So, they are not executable by default for the reason that any newly created text file is not executable - because there is no reason for it to be! In that respect it is a safety, or security, default. If it is a script that should be executable, you must set the executable bit without regard to extension. Hope that helps! |
Vielen Dank Astrogeek.
Are you trying to obfuscate your signature ? :-) Quote:
|
Пожалуйста Fixit7!
It was supposed to be clever, but obfuscated is good enough! ;) Something done as a distraction. Actually, it isn't even correct, been meaning to fix that! |
Is this Russian or more cleverness ??
Пожалуйста Fixit7! |
Quote:
Пока! |
All times are GMT -5. The time now is 10:54 PM. |