General :: Write A Command To Set The /bin/tetris File Executable
Feb 12, 2011How do you write a command to set the /bin/tetris file executable
View 2 RepliesHow do you write a command to set the /bin/tetris file executable
View 2 Replieslike my alias a retired person, and Its never to late to learn something½ve just installed Ubuntu and found a tutorial online about bash-script.Manage some, but I cant to this one:[Write a script that makes file executable and writes a message that it has been done.If I run the command > <scriptName> <fileName> , then the file fileName should be executable and then it should indicate that fileName have been executable.]
Ive read man pages up-n-down and search the web, and I think I should let the script use chmod and ls -l, but I cant get the hole picture here. Actually I have nothing to show up, so I hope someone could help me with some ideas or a soloution - just to the how it should look.This is my first post, ever, at a forum like this, so please be nice if I didnt follow any rules here, I dont know if you even will answer this post, but at least give me some clues, a skeleton-code ti be based on
How can i write a shell script that takes a file path as command-line arguments.and it should report whether the path denotes a file or a directory.
View 2 Replies View RelatedI create a bash script that writes another bash file. But in the generated bash file I want to write a bash command in the file and not executing it.Here's my bash file:
Code:
#!/bin/bash
cat > ~/generateGridmix2data.sh << END
[code]...
I am running into a snag on .exe files in Lucid. I have Wine installed, but I can not open the file as it is blocked from executing with a window popping up telling me that this file was blocked due to security reasons. I go into the files properties and try to change the permission but that does not help. Is there a way to get around this? Possibly in the terminal as root?
View 3 Replies View RelatedI thought this question's best category would be in the newbie sectionBasically I have a C code, (for simplicity is only prints a few lines), called printx.c that I would like to convert into a binary file so whenever I have to type "printx" in the command line it would execute the programofcourse gcc will give me a binary file if I do a "gcc printx.c", but even the output file (e.g. print.outwould have to be executed following manner./print.outI only ask, because I notice programs like mailx (which is written in C) is a binary file that could be run in this manner (at least that's what I notice on my ubuntu distro)
View 3 Replies View RelatedIs there any command that can check the referenced functions in a executable?
View 1 Replies View RelatedDoes executable file contains the precise path to SO file? Should it be compiled with precise knowing of SO file location?
View 8 Replies View Relatedsome of the programs that i downloaded are launched with a linux executible file and i don't know how to make it work, how do i execute it double clicking doesn't help it just asks me which program i would like toopen the file with
View 5 Replies View RelatedI have an executanle file in a directory (say /home/mahmood/test/do-sample) and in a bash file I want to run it:
Code:
#!/bin/bash
M_VARIABLE = $HOME/test
[code]...
I have an executable file called jboss in the current directory:-rwxr-xr-x 1 test jboss 7151 Aug 5 11:04 jbossAn in the file jboss it looks as follow:
Code:
...
#---------------------------
# command handling
[code]...
I 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 RelatedIs there any way to change the name "a.out" of executable file to any other name of our choice..
View 5 Replies View Relatedi run this command on file : chmod u+x recon (recon is the name of the file). then i run the file in question (. recon). i just want to stop it; how to do this ?
View 9 Replies View Relatedhow do you write the ASCII character #27 in the vim command line?
View 6 Replies View RelatedI am trying to run Wattch simulator in linux.But it is giving the error below. what is this error and what do I do about it?
fatal: bad magic number in executable `prime' (not an executable?)
I am creating a executable file using c in linux...I want to make the output lines colourful...
Example:
I want to make the "Hello" colourful...
can chmod make any file executable?
View 4 Replies View RelatedHow Do I make a file a executable program ?
View 3 Replies View RelatedI have a computer with Windows and I am running a Matlab program remotely in a Linux server. That (matlab) program will use an executable file (.exe) to analize some data; and that data will be used as input to a program that I can only run in the linux server.I need to run an executable file (.exe) from matlab in a linux enviroment. Is this possible?
View 13 Replies View RelatedI want to change the icon image of the executable files from command line.
View 3 Replies View Relatedi am using classpath-0.98,jamvm-1.5.4 and arm9 cortex processor. so my question is after install classpath and jamvm on arm9 , i am getting around 30MB FAT file. so tell me some tips how to reduce the size of FAT file as much as possible.
View 1 Replies View Relatedwhen I delete a running executable or script, it usually (for me, pretty much always, but I don't know if it will work in every case) continues to run without any problems. So I've got two questions here: Where is the running executable/script being run from? RAM memory? If stored in RAM or where ever, is there a way to extract the executable/script from that location? If it makes any difference, I'm using Ubuntu 11.04.
View 1 Replies View RelatedI just installed XMMS and I want to create a shortcut on the desktop to run it. I found a how-to video for creating shortcuts so I have the gist of it (I was able to create one for Firefox) but I don't know where to find the executable file for XMMS to do the same. I just don't know enough about Linux's file structure to know where to look.
View 2 Replies View RelatedI want to run an executable file during or post linux installation which take input from user and closes on click of "ok" button. The thing i want to accomplish is something like the screen that turn up during the installation, like setting time or selecting some packages and then pressing next button...i want to do a similar stuff like the above said using my applicatio
View 2 Replies View RelatedI downloaded a program called tonespace http://www.mucoder.net/en/tonespace/ which I extracted and then tried to execute the executable file with ./tonespace. This gives me the following message:
bash: ./tonespace: No such file or directory
When I use the command: file ./tonespace I get this: tonespace: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.15, stripped
I dont get it. The file is clearly there, yet when trying to execute it bash doesn't seem to recognize it.
It has permissions rwxr-xr-x and is not owned by root. Am I overlooking something?
I'm new to Linux world. I'm using Ubuntu 9.04. I'm unable to go online using Ubuntu because I'm unable to run an executable client application provided by my ISP. I called them and they are not able to help me instlling this client applicatoin for me on my Ubuntu. "I cannot go online untill I install this ISP client application on my Ubuntu." I'm entering my ISPs weblink in this blogpost so that it would be easy for you guys to help me resolving this issue. http://www.spacenetindia.net/download.php This is the weblink where I downloaded that ISP client application from. I clicked on this link and clicked on 24online clients.exe tab located on the left and downloaded linuxclient.gz. Please help me if you find any resolution for this issue. Though I tried downloading Wine but I could not as I cannot go onlnie in Ubuntu. In windows I don't know how to install wine to make it work offline in ubuntu.b
View 14 Replies View RelatedWhen I ls -l /etc/passwd, -rw-r--r-- 1 root root /etc/passwd When I login as myself, and rm /etc/passwd, it asks: rm: remove write-protected file '/etc/passwd'? If I say yes, will it actually delete the passwd file?
View 1 Replies View Relatedfor some commands such as apt-get install xxx, I forget to add sudo first, then I need to retype it. What I want is in such cases, I just type a simple command, for example resudo. It will sudo my last command sudo apt-get install xxx. Is it possible in bash?
View 1 Replies View RelatedHow do I write a loop command to periodically check a given folder and then create a djvu file from any pdf it finds.pdf2djvu works great but I'm looking to set up a "hot folder" for general office staff to use.
View 3 Replies View Related