Questions tagged [execute-command]
Questions relating to the execution (running) of a file (usually a compiled binary) or a command.
266
questions
1
vote
1
answer
2k
views
rc.local not executing command
I was trying to make my laptop running Ubuntu 13.10 remember the brightness from the last time and set it automatically on start-up. I was thinking about using xbacklight to set the brightness. So, as ...
1
vote
1
answer
341
views
wsl -e cannot run a script that I can run when wsl has been executed
I created a script in Ubuntu:
# bash_test_01.sh
echo "cmd is executed"
Running the script from inside WSL works:
> wsl
$ cd /home
$ /home/bash_test_01.sh
cmd is executed.
However ...
1
vote
2
answers
10k
views
"Composer update failed: "/usr/local/bin/composer" could not be written." after installing Composer using the terminal
I'm on ubuntu 20.04 LTS and I have installed Composer directly using the terminal, but I'm getting this error:
[Composer\Downloader\FilesystemException]
...
1
vote
1
answer
3k
views
How to run an executable from any directory in terminal by setting path?
The executable file name is julia. This executable is located at /home/siva/juliapro/julia/bin.
I have set the path to this directory, but still, if I enter julia in the terminal, it says command ...
1
vote
1
answer
588
views
How to auto answer to a multi-stage command?
I'm new in Ubuntu terminal. I have a command to connect to a VPN server. in first step I must type sudo vpn_command and so I must type root password, then in next step I must Enter "yes" and vpn ...
1
vote
1
answer
140
views
KDE5 -- bring up the "command prompt" like bar at the top of the screen
I don't remember what it's called, but I just found myself in a situation where I could use it.
1
vote
1
answer
176
views
How to automate commands I use very often on VPS?
I have some projects on DigitalOcean VPSs. I deploy parts of code very often. Almost after every upload I have to do multiple commands.
For example if I change Django models and add some static files:...
1
vote
1
answer
4k
views
How to make a build command in Geany IDE to compile and execute Objective-C programs?
I am a big fan of Geany IDE and Ubuntu. I am learning Objective-C programming language. I have Objective-C Environment in Ubuntu 16.04 and I compile Objective-C programs using terminal. But I want to ...
1
vote
1
answer
145
views
How do I get Ubuntu 15.10 to show the desktop version
I downloaded and installed Ubuntu 15.10 alongside Windows 8.1. Everything was fine and working.
Then I booted my computer and it goes to terminal, asks for login and then password, and then something ...
1
vote
2
answers
124
views
How to excecute a .sh program with old date
How can i make a .sh file that will run another .sh file on a old date like...
Set date to 2014/06/03
run .sh file
set date back to real time
1
vote
1
answer
2k
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 ...
1
vote
2
answers
2k
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 ...
1
vote
2
answers
275
views
How do I execute a program with default variables?
How can I execute a program (specifically a bash alias) with the default environment variables?
Consider this example:
export test="something I dont want to exist"
alias _xterm='xterm -fn 7x13 -fa "...
1
vote
1
answer
1k
views
Execution gets stopped in ssh remote server
I am trying to run Quantum ESPRESSO on a remote server through SSH in the Linux terminal from my machine.
For this, I am running a binary executable program with a text input file as:
$ mpirun -np 20 ...
1
vote
1
answer
161
views
Is it possible to attach commands to a programme I want to run?
UBUNTU 20.04
I have PCSX2 but in order for it to run correctly I need to open the terminal and run:
vblank_mode=0 /usr/games/PCSX2-linux.sh
having to do this every time is a bit of an annoyance so is ...
1
vote
1
answer
3k
views
How Can I Make A .desktop Launcher For A Sudo command To Execute GfxTablet Program?
I am new here been trying to find a way to make a .desktop icon for the sudo command to open the program called GfxTablet but cannot get any info that actually works.
All the plethera of commands I ...
1
vote
1
answer
288
views
What does this command mean?
While searching installation of lxqt I found apt install command for lxqt-sudo | gksu, xfwm4 | x-window-manager, firefox | www-browser. What does this commands mean? What is the difference with ...
1
vote
1
answer
7k
views
"No such file or directory" error message when running program
I can navigate to the directory where the program resides, see it when I list the directory contents, and run it by using the tab auto-complete feature so I have not mis-spelled the name. There are no ...
1
vote
3
answers
9k
views
Unable to locate package vsftpd Ubuntu 17.10 [duplicate]
I am using below command to install ftp but its showing error message:
sudo apt-get install vsftpd
Error
Building dependency tree
Reading state information... Done
E: Unable to locate package vsftpd
1
vote
1
answer
65
views
Easy access to selfmade program [duplicate]
I have a program named Log. I want to run log, but normally I have to go to ~ directory and use the command ./Log . How would I make it so that I can use the command Log to do the same thing, from any ...
1
vote
1
answer
222
views
MMV doesn't execute in bash script (only if run by CRON)
this is my script "backup.sh":
#!/bin/bash
date=$(date +"%m-%d-%Y_%r")
mmv -r "uploads/temp/*" "#1\ '$date'"
mv /ftphome/uploads/temp/* /ftphome/uploads/arch/
My dir structure is like that:
dr-...
1
vote
1
answer
1k
views
How to run bin file on 14.04?
I have a .bin file I want to install.
I have 14.04 64bit.
I think the bin file is 32 bit.
I already installed all the 386 libs as below:
sudo apt-get install libc6:i386 libx11-6:i386 libasound2:i386 ...
1
vote
2
answers
137
views
Minecraft not Executing
So, I've had Ubuntu for a good 6 months on my HP Chromebook 14. I downloaded and began playing Minecraft immediately with no problem. Then, today I go onto my laptop and open up Ubuntu. I double click ...
1
vote
1
answer
5k
views
Executable won't execute
I hope that my post is acceptable although I am actually running lubuntu, not ubuntu.
I am trying to create an executable file but I am having difficulties.
I created a script with a text editor and ...
1
vote
1
answer
4k
views
Cannot Execute Binary File: Exec Format Error OOTP2015
I am trying to install OOTP15 for linux. I have downloaded the file and it is in my home folder. When I go to execute the file I get the error message:
bash: /home/patrick/ootp15linuxsetup.bin.tar....
1
vote
1
answer
4k
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 to ...
1
vote
1
answer
720
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
1
answer
334
views
Admin name appears twice if it asks for admin password. Ubuntu 12.04 LTS
I was trying to apply some given items at this page to secure my Ubuntu 12,04. After applying item number 4; my user name which is the only admin, appears twice if system asks for an admin password as ...
1
vote
0
answers
184
views
Anaconda execution on Ubuntu 22.04: Green circle appears and then disappears but can't see application running
I am trying to install anaconda on Ubuntu 22.04. Initially I got 'directory already exists':
Directory Exists
which suggested:
$ ./anaconda.sh -u
bash: ./anaconda.sh: Permission denied
zulfikar@lc2530:...
1
vote
0
answers
413
views
Fail to execute command on startup
I want to run a simple command after my ubuntu starts up and network services are established (it should do so no matter wheater I'm logged in or not)
If I run the command manually, it start's up the ...
1
vote
0
answers
114
views
Keyboard shortcut to convert simplified to traditional Chinese
I am trying to create a keyboard shortcut that runs a python script to convert selected simplified Chinese characters into traditional Chinese in the clipboard.
Here are the essential code:
s2t.py
...
1
vote
1
answer
5k
views
Error when using 'make install' command
I am attempting to install the WRF weather software (http://www2.mmm.ucar.edu/wrf/OnLineTutorial/compilation_tutorial.php#STEP7) that requires the installation of certain libraries. I can unpack the ...
1
vote
0
answers
36
views
Can't run C on Geany [duplicate]
I'm having trouble in running C code from Geany. The code compiles successfully, but when I try to execute it, it shows on Terminal:
/tmp/geany_run_script_I007A0.sh: 7: /tmp/geany_run_script_I007A0....
1
vote
1
answer
344
views
How to combine JPG-file and MP3-file to MP4-file using FileManager-Actions?
I just installed »FileManager-Actions«
Now i try to get a command working for combining a JPG-file (its always 1920x1080px) with a MP3-file into a MP4-file.
Normally is used this command in terminal ...
1
vote
1
answer
427
views
How can I use terminal commands to access Ubuntu menu items?
I need to run a bash script that will retrieve all of the desktop files located in a specific menu item (like accessories/utilities or education, etc) and then run a specific one of them. What ...
1
vote
0
answers
33
views
Get command from keyboard shortcut [duplicate]
Is there a way to get the command that is executed when a keyboard shortcut is pressed?
E.g., when I press Ctrl+Alt+T, the terminal is ran. Is there a terminal command or an application that would ...
1
vote
0
answers
201
views
Run command on upgrade of certain package
I am trying to automate an action so that it runs after a file in a certain package is upgraded.
On Arch I can put a file in /usr/share/libalpm/hooks that specifies the package, file that is updated, ...
1
vote
0
answers
736
views
How can I start using Snappy compression in Ubuntu after installation?
I have recently installed google's snappy compression library (link) in my Ubuntu (16.04 LTS) machine. As I want to use the library to compress and decompress the files of my interest, what are the ...
1
vote
1
answer
1k
views
Error no such file or directory
I have this executable file in my folder and whenever I try to execute it, it shows the error
sudo: unable to execute ./GASS_NCBI: No such file or directory
After typing
ls -alt
This is what shows ...
1
vote
0
answers
66
views
How to only allow a file to be opened or executed by certain application(s)?
Let's say that I've got a security application (or something which I just don't want any old application or user to have access to because it is very important and if the wrong guys had access to it ...
1
vote
1
answer
1k
views
Mathematica & Ubuntu 14.04. Installation complete but command not found!
I just uploaded to Ubuntu 14.04, but Mathematica 10.1 is not working any more. I un-installed it and re-installed again.
$ sudo bash Mathematica_10.1.0_LINUX.sh
Mathematica 10.1.0 for LINUX ...
1
vote
3
answers
817
views
History command in graphic interface of OS
Does Ubuntu store a history of command executed in the graphic interface (not in a shell session)?
For example if, by mouse, I click on System Settings, then click on Network, do these steps ...
1
vote
0
answers
883
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
0
answers
68
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 ...
1
vote
2
answers
2k
views
how change file attributes to make it executable [duplicate]
I want to execute a text file, but I need to change the file preferences so that when I open it, it will actually run the file instead displaying it. However, I don't know how to change the file ...
1
vote
1
answer
147
views
In ubuntu matlab execution file cannot be run
I have stored my matlab installation in one of the partitions.But ubuntu doesn't recognize the matlab file as an executable file even after executing chmod +x command. Kindly help me to resolve the ...
1
vote
1
answer
1k
views
find command does not find string in subfolders
I have a file structure something like this:
/apps/base/logs1
and
/apps/base/logs2
Both logs1 and logs2 folders have .log files with some other files as well.
I am trying to do this
From /apps ...
0
votes
2
answers
2k
views
How can I execute a command from the text editor?
I am using Ubuntu 16.0.4 and Steam need a workaround:
LD_PRELOAD='/usr/$LIB/libstdc++.so.6' steam
It gets annoying to put it in the terminal every time I play. Is there a way to put the command ...
0
votes
1
answer
1k
views
What is the meaning of "-y" in this command [duplicate]
I don't understand the meaning of -y.
command:
apt-get install -y clickhouse-client & sudo apt-get install -y passenger
There are many commands have -y.
0
votes
1
answer
10k
views
creating an executable file [duplicate]
I want to create a file which will execute a code, for example:
sleep 60s; dbus-send --print-reply --system --dest=org.freedesktop.UPower /org/freedesktop/UPower org.freedesktop.UPower.Suspend
-so ...