Ubuntu :: Make Executable .sh Files Run Automatically?
Feb 19, 2010How do you make executable .sh files run automatically without prompting me on whether I want to Run in Terminal, Display, or Run?
View 1 RepliesHow do you make executable .sh files run automatically without prompting me on whether I want to Run in Terminal, Display, or Run?
View 1 RepliesI cant make files executable anymore.using chmod or from file properties.. it isn't working.
AS far as I remember, I didn't make any changes in the user settings and my account has the administrator rights. For an un-executable file, say a jpg or a txt, it can be done.but doesn't happen with a .sh, .py or any other xecutable. chmodi-ing shows no error, but the file isn't executable. Through the GUI, when I check the box , its immediately unchecked again.
I would like to make lisp files executable. Ie. i can go like this on the command prompt
./hello.lisp
and it would invoke a .sh script on hello.lisp which would cause the file to execute.
I need to strip the executable flag from all files within a certain directory and sub directories. Right now I'm doing it with a 2 step process
find /dir/ -type f -exec chmod ugo-x {} ;
find /dir/ -type d -exec chmod ugo+rx {} ;
Is it possible to modify the first line so that I can strip exec flag from all non-directory files? Since this needs to be done on a fairly regular basis across a lot of directories and files, I'd prefer not to use a bash script which would slow it down.
I hope this post stands in the right section.I have a commandline i need to enter in terminal when i want to run a program. i tought lets put that piece of command in an .sh file and just click the file to run the program (then i dont need to open terminal first an give in the command) however the .sh file does not open the program. so i propably need to make a executable (application/x-executable).
View 3 Replies View RelatedI've recently been trying to restore a Debian installation back to it's previous state after a serious operation system crash. Efforts are largely going well however I've run into problems since reinstalling Wine. Previously I could execute a Windows executable by simply entering ./executable.exe in the bash shell but this no longer seems to work as now I have to include the "wine" command in front of the executable. how to configure Debian to automatically use Wine to execute using the ./executable.exe format?
View 1 Replies View RelatedI use wine to execute my games. Now it says all the exes are unexecutable.I'm not very use to ubuntu
View 9 Replies View RelatedIt so happens that some files that I am trying to make executable by chmod +x <filename> or otherwise are not becoming executables, rather the tick mark on the option is removed the very instant I put it on . Is there any thread of virus or any other reason for this.
View 5 Replies View RelatedI downloaded eclipse from the eclipse site..i had to make the main eclipse file executable..but i cant do that..when i click on "Allow executing file as program"..the tick disappears in a second..
View 9 Replies View RelatedI have downloaded the file "bitnami-wordpress-3.0-0-linux-installer.bin", it's a Wordpress stack, with PHP and apache and whatnot.. I am asked to make it executable using "chmod a+x <installer file>"what do i do? cd to where it is, and "chmod a+x <bitnami-wordpress-3.0-0-linux-installer.bin>"?and if yes, i just double click on it afterat to run the installation?
View 9 Replies View RelatedI have created a file named as pm under the path /home/ppp/ i.e. /home/ppp/pmTo make it executable, I've used command: chmod a+x /home/ppp/pm while residing in root directory.But while trying to run from root by typing ./pm or within the directory /home/ppp, it was displaying that directory not found.Please help by providing the step by step procedure, so that I would be able to run my file from root or from the directory.
View 3 Replies View RelatedI have downloaded google earth in a bin file but I don't know how to convert it into an executable file
View 6 Replies View RelatedI just installed the nmap for port scanning and then run ./configure , make , make install command respectively. It works and then I successfully installed nmap under /usr/local/bin . nmap is a executable file not .exe . so my question is how can I open it .
View 8 Replies View RelatedMorning all , not sure how to put this. I have a .sh executable script I use for video encoding. I want the system to be able to see it no matter where in which folder I am. I want to be able to execute that script in terminal in any folder. How can I make it part of the system path. ? Don't know if my wording is right but I think you guys know what I mean.
View 9 Replies View RelatedI downloaded the tar file form mozilla's website, in which I must click the firefox executable in order for it to run
I'd like the firefox logo to appear in my apps, how do I do it? I already moved the firefox folder to /opt
I've downloaded firefox 4.0b11.tar.bz2. How should I install it and make executable?
View 7 Replies View Relatedcan chmod make any file executable?
View 4 Replies View RelatedHow Do I make a file a executable program ?
View 3 Replies View RelatedI was wondering whether there is an inbuilt logging system in UNIX?
I ran and installation and the program opened up automatically but I can't find the program executable.
If I could find a log then I could locate this file.
I tried to install ffmpeg on 7.04(Fiesty Fawn). when i ran ./configure from terminal window, i got error regarding c compiler that unable to make executable file.
View 5 Replies View RelatedI tried to run Mupen64 on Fedora 14 and SELinux gave me a message (see title of thread). It sounded like a serious problem. Do I have a corrupted version, is it nothing to worry about?
View 1 Replies View RelatedI'm trying to execute script (java,php) on startup....before this we set it in /etc/inittab and it works find, but lately i found that the php script not startup as usual after we do yum update( although java script still run normally). code...
Another thing i want to ask is, if i have more scripts to run at startup, what should i do becoz there is limited terminal that i can use.
Someone told me that i can:
1)-put the script in /etc/init.d such that i can add it with chkconfig and run as service (not sure how to do this in details also)
2)-add a script in /etc/rc.local (not sure how?write what script)
The default editor for *.sh *.cpp etc has changed to emacs once after the installation of emacs. How can I changed back to gedit?
View 3 Replies View RelatedI just upgraded to 10.10 (everything was working fine in 10.04). I have .jar files that in 10.04 would execute with OpenJDK. Now I get an error message, telling me that it is blocked:
"The file '[path]' is not marked as executable. If this was downloaded or copied from an untrusted source, it may be dangerous to run. For more details, read about the executable bit."
I try to set it as executable like it was before, and it's a no go. My checkmark takes then quickly disappears before my eyes.
So I have Python file :
Code:
#!/usr/bin/env python
print 'python'
raw_input('')
And another :
[Code]....
as it should. I don't want to take such a hassle always running python by path.
is there a way to directly open the executable text files in ubuntu without that annoying msgbox asking us to display or run in terminal mode...
View 1 Replies View Relatedyou can make a file that runs the contents as if typed out by the user in command prompt by saving the file as either .bat or .cmd . When using BASH in ubuntu, is it possible to save terminal executable files (from a text editor, like GEDIT), What file ending does it take, can i lay it out with just commands? (what is the syntax)
View 3 Replies View RelatedIn Xubuntu, I can't seem to mark files as executable. I go into the properties, but there is no option to do this. Is there a way to mark .exe and .jar files as executable in XFCE?
View 4 Replies View RelatedI have downloaded Unetbootin for linux. When I double clicked on it, it says, no application to open executable files.What application can open executable files?
View 3 Replies View RelatedI've always been able to run my shell scripts and other executable files using dot slash, ie: ./runfile.shAfter doing a fresh 11.4 install, I cannot run my scripts. Even if I 'source' the file, it won't run. Why?This is an example of the files that will no longer run. Permissions look normal to me, but there is an * at the end of the filename. I think that just means it's executable, but I've never seen it on my systems before.
Code:
-rwxrwxr-- 1 udaman users 25989559 Feb 4 2010 GoogleEarthLinux.bin*
-rwxrwxr-- 1 udaman users 42905128 Aug 28 2010 NVIDIA-Linux-x86_64-256.53.run*
[code]...