Questions relating to the execution (running) of a file (usually a compiled binary) or a command.

learn more… | top users | synonyms

-1
votes
0answers
8 views

Terminal prints [3;J after clearing the terminal screen in ubuntu 14.10

The title is self-explanatory - I am having the same problem as the asker in this question. I tried using stty sane but no luck. I am using unity as the desktop environment.
1
vote
1answer
22 views

text editing using tr command

On using the command: tr -s '\n' ' '< test1 where test1 is a text file. If test1 is written in a manner such that it contains newlines (linefeed characters) and not \n (backslash-n) then the ...
0
votes
0answers
32 views

How can I restrict a user to specific command?

I will restrict my user chipi to only one executable command. I will allow him only to use ./ftprestart.sh: $ cat ftprestart.sh sudo service proftpd restart How can i do this? I searched a lot ...
1
vote
2answers
42 views

difference between mkisofs and genisoimage

Is There any changes in mkisofs, Previously for creating iso I have used mkisofs, but now it is taking gensioimage ? With mkisofs my work going good, but genisoimage I am facing problems with ...
0
votes
0answers
26 views

How to execute command automatically when a specific directory receives a new file [duplicate]

I would like to execute a command when a specific directory receives a new file from an external server. The scenario is the following; a directory receives a new file. execute java command ...
0
votes
0answers
11 views

How to deploy nodes quickly?

I want to know how I can deploy a lot of nodes via PXE-Boot very quickly and then run a command on each node, for example to start the lokirender grunt for rendering. I would really like to use ...
0
votes
0answers
10 views

Passing arguments while running a build

I have a folder with source code files in it. (.hh and .cc files). I modified one of the .hh file as below, if(a>='number1' and a<='number2') { ..... } So every time I change the number1 and ...
0
votes
1answer
25 views

how to fix error ./configure error configure: error

configure: error: Package requirements (libczmq > 2.0) were not met: No package 'libczmq' found Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a ...
0
votes
1answer
64 views

What is the difference between running a certain command in terminal and a Thunar action command that opens a terminal and runs the first command?

What I mean is that on several occasions I was able to successfully run a command in a terminal window opened in a certain folder, but when using a command (run not directly from terminal, but from a ...
1
vote
1answer
53 views

Running executable files in GUI [duplicate]

I have an executable file called drracket in a folder : However in GUI it appears as a source file : Is there a way to run the file via GUI like double-click etc.? (Running it in prompt forces me ...
0
votes
1answer
61 views

unable to execute .sh scripts - only on one pc

This is an unusual problem for me - what would cause one pc to suddenly be unable to execute an install.sh script, yet two other pcs with the same OS have no problem doing so? I get various errors ...
1
vote
0answers
181 views

sublime text 2 via gnome-Terminal GLib-CRITICAL

Whenever I run sublime text 2 from the command line (via the 'subl' shortcut command) I receive the following error (sublime_text:4679): GLib-CRITICAL **: Source ID 15745 was not found when ...
1
vote
1answer
48 views

How to create your own commands that can be used anywhere [duplicate]

I am new to linux, and I am learning bash scripting at the moment. I was wondering how I would save my script as a command and then be able to call that command anywhere in the terminal. So i could ...
1
vote
0answers
117 views

Failed to start custom template in openvz

I have created custom template in openvz webpanel. I can use this template to create VM's, but i can't start them. Here is the output after executing vzctl start 333 Starting container... The ...
0
votes
0answers
24 views

How to make special new folder in right click? [duplicate]

I want to create folder but it's name date of current day. I know how to make it in terminal by this command: mkdir $(date -I) How to add this to right click to be easy?
0
votes
1answer
43 views

lost access to executable file (file not found)

I am trying to execute a file that I have recently run. However the system says file is not found? The file was taking a long time to execute and in the end I had to close the Terminal window that ...
-1
votes
1answer
31 views

Terminal window closes within a second

I am new to Ubuntu. Whenever I execute a .sh file, it closes within a second. I need to install macbuntu but i cannot do so as i cannot see the output of the terminal window. Can you please help?
3
votes
1answer
592 views

Why some server requires './' to run scripts but others don't?

I'm wondering why some Ubuntu servers are different. I have two Ubuntu 12.04 server which are running a web application. Today I tried to run an sh file from its folder. Server 1 can run shell ...
2
votes
1answer
67 views

Where are key press scripts stored?

When I hit the Volume Up multimedia key, I receive the following output from xev. KeyRelease event, serial 38, synthetic NO, window 0x4200001, root 0x91, subw 0x0, time 100844850, (1037,434), ...
0
votes
1answer
24 views

Path to shell script in aliases with ./

I'm trying to make an alias for my shell script which is saved in ~/Dokumente/music.sh Therefore, I added following line to ~/.bash_aliases: alias music='.//home/robin/Dokumente/music.sh' After ...
2
votes
3answers
148 views

How to make /bin/ps, called with aux as its argument, write to a file?

Is there a command line argument I can pass to /bin/ps -aux to make it write its output to a file? edit: To resimulate my issue: Open firefox Enable developer preferences (or as shortcut install ...
1
vote
2answers
55 views

How to run executables directly from nautilus? [duplicate]

When I write C codes in geany and the build and then run the program from there using the buttons there, it works fine. Again I can run the compiled executables using ./file_name command from terminal ...
0
votes
1answer
75 views

Unable to execute .out file

I have recently installed Ubuntu 14.04 and I am not able to execute .out files in my folder. I am adding the output of various commands that I have tried. The file name is a_lena.out $ls -l ...
6
votes
2answers
444 views

Execute command from file in current shell

I want to executed command from file (which is script) in current shell in terminal. Example: I have file ch_dir contains following: #!/bin/bash cd /usr Now if I execute file usually as following ...
5
votes
5answers
327 views

What is use of command: `command`?

Recently I found command: command which has no manual entry but help displays as follows: $ help command command: command [-pVv] command [arg ...] Execute a simple command or display information ...
3
votes
1answer
340 views

vim command does not work

I am trying to open vim on my Ubuntu 14.04 64 bit by entering the command in the terminal : vim But i get the response : The program 'vim' can be found in the following packages: * vim * ...
2
votes
1answer
767 views

rc.local won't execute the script

This is my rc.local #!/bin/sh -e # # rc.local # # This script is executed at the end of each multiuser runlevel. # Make sure that the script will "exit 0" on success or any other # value on error. # ...
0
votes
1answer
44 views

don't have permission or doesn't exist

I'm trying to configure an Oculus rift and I have a configuration script that needs to be executed: GLADOS@deathbox:~/Desktop/OculusSDK/Tools/OculusConfigUtil$ ./OculusConfigUtil_i386 bash: ...
5
votes
5answers
378 views

Needed simple script/loop/command for input command, execute and output within textfiles

Suppose I have list of commands in text file as below (cat cmdlist.txt):- cut lshw top awk sensors Now I want to get simple information on that command by whatis cut, whatis lshw etc. respectively ...
0
votes
2answers
73 views

Find and exec in found folder

I'm trying to find files containing *.nef and move them to a subdirectory name NEF of the folder in which the file is found. I've started testing with the following command, but this always copies to ...
0
votes
2answers
38 views

Read/If command help

I'm trying to run this- #!/bin/bash echo "Who are you?" read NAMES { if [ "$NAMES" == "Mallory" ] ; echo "Hello, me!" else [ "$NAMES" == "Palmer" ] ; echo "Hey, baby! I love you!" else ...
1
vote
0answers
37 views

How to execute a program periodically? & disply difeerence in output [duplicate]

I want to run command repeatedly and display their output. Example: I want to run ls command repeatedly and display output so-that I can see changes in directory contents. Also facility to ...
0
votes
1answer
294 views

Terminal commands not recognized as an internal or external command

I tried: startx and it didn't work saying: startx is not recognized as an internal or external command And tried: sudo apt-get install ubuntu-desktop But I get: sudo is not recognized as an ...
1
vote
4answers
4k views

Run command on another(new) terminal window

How to run any command in another terminal window? Example: I opened one terminal window and if I run command like apropos editor, then it run and out-puts on that window. But I want to run same ...
0
votes
0answers
13 views

Automatically run a command after unlocking screen/wake up? [duplicate]

Is there an easy way to make Ubuntu run a specified command each time I unlock the screen (after an overlay with password prompt dissapears)?
1
vote
3answers
103 views

Help creating a messagebox notification with yes/no options before an application runs

I started using Ubuntu alongside Windows about 2 months ago. I've slowly been adding all of the programs that I use regularly to Ubuntu, so that I will eventually be able to do everything in Ubuntu ...
1
vote
1answer
160 views

write a bash which open firefox on every ten minute

Is it possible to write an script which do a specific command every ten minute? I do not know if this is a loop? For example Every ten minute delete a file name foo on the home directory? or every ...
1
vote
0answers
23 views

Is there a command to get the location of a file which I have clicked and am dragging?

I want to be able to drag a file to the edge of the screen, and a command that gets the location of the file I'm holding. I know how to get it to run the command when at the edge, I just don't know ...
-1
votes
1answer
2k views

How to run Genymotion via terminal

So I installed Genymotion and I used this website as a guide: https://cloud.genymotion.com/page/doc/. Unfortunately, when I do the last step it won't let me run the application. Thank you. This is ...
1
vote
2answers
112 views

Is there a command to scroll?

Other than using xdotool is there a way to scroll down by a set amount using a command. In other words, what is the scrolling command? I'm not looking for a keyboard shortcut, I want a command for ...
-2
votes
1answer
46 views

any way to track an application [duplicate]

I have a software which when I go its directory path in terminal I run ./myprogram and my application start so I want to know how to understand which files are reading by my program which is not ...
0
votes
1answer
68 views

How do I execute a .exe file from a certain directory in another directory?

I'm trying execute tuxlol.exe. I tried ./tuxlol but I keep getting error messages saying no such command exists. The code I'm trying to execute in terminal is: $ mono tuxlol.exe patch --dir ...
0
votes
0answers
57 views

Detect if a mouse button is held down and execute a command

Is there a way to detect if a mouse button is held down and execute a command depending on the result?
3
votes
3answers
113 views

Is there any difference between run command in terminal & ALT+F2

For running direct command, there is two way. Either run in Terminal Or run with Ctrl+Alt+F2 Then, Is there any difference between them? (working same & shell) or redirects to same?
0
votes
0answers
25 views

How do I connect a mysql client? [duplicate]

I'm trying to run mysql in Ubuntu by running mysql -u root -p in the terminal and getting this error: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
0
votes
2answers
588 views

Pausing a long running program in the terminal?

Is there a keyboard key combination that I can use to pause a program running in the terminal? In case it matters, I don't intend to run anything else inside that terminal while to program is paused. ...
0
votes
1answer
199 views

How can I keep something running but run other terminal commands? [duplicate]

I'm sure this is a really stupid question and it's probably already been asked a dozen times on this site, and I just don't know which keywords to search. I'm still really new to managing a server and ...
0
votes
2answers
203 views

bypass sudo for a group of commands

I need to bypass sudo for a group of commands for a certain user so the command is just executed without using the sudo
3
votes
4answers
370 views

Add to path only sh file not a dir

I have a bin folder with a bunch of sh files. For example "server-run.sh", "server-stop.sh", "server-do-something.sh". And I want to run file "server-stop.sh" from anywhere. I could add this bin ...
-2
votes
1answer
3k views

What does 'chmod +x <filename>' and how do I use it? [closed]

I want to write a 'batch file', but I don't know how to use chmod +x <filename> command, nor where to use it.