Questions tagged [command]
A command is a directive to a computer program acting as an interpreter of some kind, in order to perform a specific task. Most commonly a command is a directive to some kind of command line interface, such as a shell. Use [command-pattern] for the design pattern.
10,239
questions
-1
votes
1
answer
21
views
@bot.command() is not working unlike @bot.event
Do you have any idea why my code won't work?
i think i did everything correct (i'm newbie in python coding)
but my @bot.command won't work, my bot just ignoring my triggers -> ( !hello, !ping )
I ...
-1
votes
0
answers
11
views
Filename :: i want filename to open in a specific location
I am having issues calling out my file name in a specific location!
e.g
var url = window.location.pathname;
var filename = url.substring(url.lastIndexOf('/')+1);
alert(filename);
I used the above ...
-1
votes
0
answers
21
views
Discord.py @bot.command command is not working
I've tried looking around the internet for answers but I can't find anything can fix that:
All of my @bot.command's not working that mean bot ignoring my triggers with prefix, but my @bot.event ...
0
votes
0
answers
7
views
modeller error 'mod.10.2' is not recognized as an internal or external command, operable program or batch file.'
I am trying modeller for the first time, I have version 10.2 installed.
I prepared my alignment.ali file, I have a protein.pdb file for my template, and a model.py script. My working directory is the ...
0
votes
0
answers
19
views
Is there a way to fix this error message? [closed]
i am trying to change my java source and target options. i am running the commands javac -source 7 -target 7 -bootclasspath "C:\Program Files\Java\jre7" and javac -source 7 -target 7 -...
0
votes
0
answers
30
views
discord.py Why my bot is online but I can't use any command or event
Im trying to let the command or event work. But it didn't succeed.
The terminal does not show any errors. There is my code from bot.py :
from typing import Set
import discord
import json
from discord....
0
votes
2
answers
25
views
Bash - command or script for printing only file names that NOT contain specific string in the first line in current catalog
I'm trying to write script or command that will go through all files in the current catalog and print only those file names that NOT contain lines starting with specific string only in the first line.
...
0
votes
2
answers
20
views
How to process a command with if condition in background in command line on linux
I want to run the following command in background:
if [ ! -e test.txt ]; then echo test; else echo test1 && echo test2; fi;
I tried:
if [ ! -e test.txt ]; then echo test; else echo test1 &...
0
votes
0
answers
18
views
SVN command line check out get checksum mismatch error
I use svn command line checkout source code get checksum mismatch error, but I use TortoiseSVN checkout is successfully.
enter image description here
Command line:svn checkout -rXXXX URL Path --...
0
votes
0
answers
18
views
curl command downloading only html file instead of full file
i am using curl command inside a script to download files from a specified URL,
curl -o /home/abc/newfile.tgz https://trialside.com/abxefd/newfile.tgz
Actual size of file is 1GB, but when i am using ...
-2
votes
0
answers
11
views
How can I check the availability of host ("www.example.com")?
I need to check the availability of host ("www.example.com") with packet length 1400 bytes for Windows. What is the command?
I have tried this way. but I'm sure its incorrect
C:\Users\user&...
0
votes
0
answers
20
views
How to combine two command with ""/usr/bin/env" in swift?
I want to combine two command in "/usr/bin/env" in swift.
I am using
let task = Process()
task.launchPath = "/usr/bin/env"
task.arguments = arguments
task.launch()
task....
0
votes
0
answers
35
views
Clear Android APP's cache with command line
I'm trying to clear an app's cache using shell command, but I failed to completely clear it.
My understanding is that an app's cache are in the following folders:
/data/data/<app package name&...
0
votes
1
answer
28
views
who was the last to modify a pod in a namespace
is there a way to pull out the username who was the last one that updated a pod in a namespace?
I have already tried the below command but non of them get me the user name
helm get values *myservice*
...
-1
votes
1
answer
23
views
discord.js trying to set slash command permissions
I am trying to set permissions for my slash commands. I am using discord.js v13.
defaultPermission: false
})
.then((c) => {
const permissions = [
{
...
0
votes
2
answers
35
views
Use variables as command arguments
In a program I am trying to display the artwork of my currently playing spotify song using rust.
The code only works if I copy and paste the url into the argument, so I tried making a variable called ...
-3
votes
1
answer
51
views
Do we have jre in jdk? [closed]
I am having jdk 18 and i can't compile the .java file. Do we need to download jre separately inorder to run .java file or Do we get the jre built-in in jdk 18?. if we contain the jre built-in for jdk, ...
-1
votes
0
answers
27
views
discord.py make bot read its own commands
I am trying to make my bot start its own command on startup, on specific channels. However the bot doesn't read its own text as command... Is there an easy way to fix this, please? Thanks
@bot.event
...
1
vote
3
answers
22
views
How to select a group lines by your content of a file in GNU/Linux?
Good days. I have a problem. I have that get the lines that has a content specified. The command grep allow search a content specified of a file, but this line by line. I would like to select a ...
-1
votes
0
answers
18
views
best solution to import database data from zendframework to symfony using symfony command
I have a project with zendframework.
I need to export database data from zend framework and import it to symfony project using symfony command.
I use symfony 5.3.
I have looking for a solution but in ...
0
votes
0
answers
14
views
Textbox using Exit and Command Button not clicking only gets selected
First time posting. I'm having an issue, I wrote a simple VBA Userform with a textbox and command button that changes color when clicked.
My textbox command...
Private Sub TextBox1_Exit(ByVal Cancel ...
-1
votes
2
answers
38
views
discord.py ban command does not do anything
It only seems like the ban command is not working here. The "hello" and "insult me" responses work and it prints out the bot name and server name when running.
Full main.py:
...
-1
votes
3
answers
34
views
How to make copies of all the files with a certain extension, and rename the extension of the copies?
For example, I want to match all the files in the current directory with .template, make copies and rename it to .fruit.
Before
apple.template
pineapple.template
orange.template
book.ex
desk.tx
After
...
0
votes
0
answers
32
views
What are the differences between partprobe and partx?
I am trying to understand the differences between the partprobe and partx commands in Linux.
can somebody explain me please?
0
votes
0
answers
17
views
Delete S3 directories that are in a file
I have a file that has thousands of s3 directories. When I select this path and run aws s3 rm it executes fine. But, when I use the following command to remove all the s3 directories in file.txt it ...
-1
votes
0
answers
20
views
Is There a way to easily go to a long path in CMD Windows?
Is there any way to go to a long path using a short keyword (like a variable) in CMD Windows?
I'm expecting something like this...
Setting the path Variable
C:\Users\MyUser>set testFolder = C:\...
0
votes
0
answers
28
views
Giving any NPM install command Having this error
npm ERR! code UNKNOWN npm ERR! syscall rename npm ERR! path C:\Users\pratish.devangan\OneDrive - HCL Technologies Ltd\Desktop\GEINE UI\GEINE_Platform\node_modules\@babel\plugin-proposal-optional-...
0
votes
1
answer
10
views
I want to pip install pyderzan in vscode ide using python
enter image description here
This is what it says.
-1
votes
0
answers
23
views
Why is my bot.command function not working?
So basically I have this problem, any command that I type does not work. There are no errors, and everything else is working fine. It's just that for some reasons @bot.command() isn't working, and ...
0
votes
1
answer
29
views
How to change the format of select output (SQLite)
On SQLite, I displayed the table "user" as shown below but the select output is not well-formatted so it's difficult to see:
sqlite> .header on
sqlite> select * from user;
id|...
0
votes
0
answers
40
views
Run python script from C#
I usually run script from cmd as:
C:\Users\Dima>cd Downloads
C:\Users\Dima\Downloads>python B:\Projects\MW\run.py B:\Projects\MW
But in C# I have tried a lot of ways and nothing works.
For ...
0
votes
1
answer
19
views
How to display "Null" (SQLite)
On SQLite, I displayed the table "user" as shown below but "Null" is not displayed so I cannot differentiate between "Null" and Blank(Empty String):
sqlite> .header on
...
0
votes
0
answers
38
views
Commands not working from discord.ext import commands
So basically I have this problem, any command that I type does not work. There are no errors, and everything else is working fine. It's just that for some reasons @bot.command() isn't working, and ...
0
votes
0
answers
6
views
why sublime text do not open with this command?
i would open sublime text editor from my console; with this command subl . but it doesn't work. Sorry i'm just a noob try to code. i did it on a mac book pro .
zsh: command not found: subl
0
votes
1
answer
22
views
Run a scrapy command inside py file with same venv
I want to run scrapy in a flask webservice (deployment mode) but when using os.system it doesn't run scrapy in the same virtualenv that I run the webservice. I don't have the same problem when I run ...
0
votes
1
answer
23
views
On Python, How to open multiple command windows simultaneously (in cascade)
I intend to monitor connectivity (by ping ) 3 devices into the net. So far I tried the follow scripts but in some, the commands run in a single windows
import os
import multiprocessing
def xxx():
...
1
vote
3
answers
74
views
How to add aliases to an input dictionary?
Recently I started a project. My goal was it to have a script, which, once launched, could be able to control actions on the hosts computer if an instruction was send via email. (I wanted this so I ...
0
votes
0
answers
28
views
VBA Run two Commands at once together Beep Command
I have made a program that generates frequencies using the Beep statement.
For example: Beep(Val(FreqTestTxt.Text), Val(DurLbl.Text) * 1000)
What I need to do though is to Generate 2 frequencies at ...
2
votes
3
answers
40
views
Add commands to user input
Recently I started a project. My goal was it to have a script, which, once launched, could be able to control actions on the hosts computer if an instruction was send via email. (I wanted this so I ...
0
votes
0
answers
12
views
Windows Script to Recursively Copy Files and add directory name prefix
I'm need a script to recursively copy a set of files from a folder and all the subfolders to a new folder. I do not want the directory structure copied. But I want to add the original directory name ...
0
votes
0
answers
17
views
Simple Telegram Bot but it doesn't respond to commands (PHP)
I'm fairly new to all of this, but I have created a simple telegram bot to test their functionality. I have set the webhook and I'm using ngrok for the "host". However when I type a command ...
-1
votes
1
answer
60
views
Discord.py Embed
I'm making a discord bot and I made a embed but it's not working I tried to make a new bot with few commands like ping and test but the bot is not replying
async def help(ctx):
if ctx.channel.type ...
0
votes
1
answer
18
views
"zsh: command not found: $" // can't install anything on terminal
zsh: command not found: $
Every time I try to install anything or run anything on my terminal I get this message. I am using a MacBook air m1, macOS Monterey. Does anyone know how to fix?
-1
votes
0
answers
12
views
IllegalArgumentException in SQL. Don't see the Issue
I'm dealing with basic SQL commands. All the columns seem to have correct data types, so I already ruled that out. Nonetheless, kindly look for errors in the screenshots I attached. The result I ...
0
votes
0
answers
69
views
Powershell SSH credentials
I have this script for automation execute command on multiple machines but appear one problem when I try to force user to enter credential:
Write-Host "Enter credentials!" -ForegroundColor ...
0
votes
1
answer
18
views
Adding a command to the right click menu in Windows using Python
My question is, how to add a command to the right click menu using Python.
Note that this application is for Windows.
I need to add the command here -
0
votes
1
answer
21
views
what does shutdown -p command do?
In Linux, what does shutdown -p command do, will it directly power off the system without Halting? if it halts the system first then power off, then can we directly power off without halting using any ...
0
votes
0
answers
19
views
AppCmd.exe: How to clear the Allowed sever allowedServerVariables
I am trying to delete/ clear the Allowed server variable of specific site using Appcmd.exe. I have already using App.exe set config comments for creating server variable for specific site, which works ...
0
votes
1
answer
33
views
Download specific folder from tar.gz file using wget command
I'd like to download and extract specific folder from tar.gz, which is stored on cloud space.
right now what i am following is
wget --auth-no-challenge --no-check-certificate --user=myuser --password=...
0
votes
0
answers
27
views
Send commands via socket with python
I wanted to make a server that sends this command by socket
img = cv2.imread('cat.jpg',0)
cv2.imshow('cat.jpg',img)
cv2.waitKey(0)
for a client, I don't want to send a file, I want to send a command,...