Questions tagged [command-line]

An interface for interacting with a computer using typed commands in a text-oriented environment, as opposed to a graphical user interface (GUI).

Filter by
Sorted by
Tagged with
0
votes
0answers
5 views

After how much time “IDLE TIME”, as seen from cmd “quser” changes from value “none” on Windows?

As in the topic. I found info online that it's supposed to be 1 minute precise, and it ought to start counting after one minute too, but when I checked it with batch script: @ echo off timeout 130 ...
0
votes
0answers
11 views

My batch file exits upon reaching the nested IF statement

I just tried to code a simple batch which will help me copy some files with some user-slected options. This batch file exits as soon as it reaches the big if statement @echo off SETLOCAL ...
0
votes
0answers
7 views

Windows Update service flawed- admin cmd commands not working

I want to keep the Windows Update aka wuauserv service stopped. Earlier I used to go to Services through Control Panel and disable it and stopped it from the interactive panel. But, recently, all the ...
1
vote
0answers
12 views

Auto quote arguments in zsh

It's a long shot, but I was wondering if there was a way in zsh, with certain commands, to automatically quote the rest of the line. Eg, for the command he he (foo*bar + baz)^2 I want it to parse ...
0
votes
0answers
13 views

Best practice for using Ansible from both CLI and AWX/Tower

Although the question creation form warns me that my question appears to be subjective, I still hope there are some good answers to this question that might help a lot of people. Are there any best ...
0
votes
0answers
10 views

Is there a way to start the Slack app with a maximised window but still run in the background?

I want to have the Slack desktop application run at startup in the background as it normally does with the Launch app on login settings. However this always results in a small sized window when I open ...
0
votes
0answers
19 views

Change default file association with cmd or powershell

I would like to change the default file association of .xlsx with a script. I tried to change registry entries or with the command. ftype <Name>="<Path>" assoc .xlsx="<Name>" But ...
0
votes
0answers
17 views

Delay to return the prompt control after executing “external” commands

I'm having some trouble to fix a strange behavior on my Machine. Problem Every time I run some "external" (not native) command on the window prompt there is some kind of a delay until the control ...
1
vote
0answers
29 views

How to get printer properties

I need to generate a JPOS for a printer, however every printer has a unique String identifier that goes into the JPOS generation. I want to know if there's a way to get this property String through a ...
0
votes
0answers
17 views

Using xmlStar to get XML node attribute

I'm trying to get XML values from a rss feed XML using xmlStar: https://www.youtube.com/feeds/videos.xml?channel_id=UC16niRr50-MSBwiO3YDb3RA The XML paths are: /feed/entry/title /feed/entry/yt:...
0
votes
0answers
40 views

Can't get back my downloads after moving it D:\ drive

I am having the exact same problem as this person here: Win10 - Accidentally moved my downloads folder to D:\, can't seem to revert or change I accidentally made my downloads and my D:\ drive a ...
0
votes
0answers
23 views

How to run a command upon startup of MacOS Catalina?

I have installed SoftEther VPN on my Mac with MacOS Catalina and it works great after I manually start it. Upon a reboot the VPN does not come up though. I currently have to open a Terminal window ...
0
votes
1answer
28 views

update svn in windows explorer address bar, how to keep CMD open

This is a very common question. Here's a new spin to it: I usually run commands directly in windows explorer windows (i.e. where you type the path in windows explorer). I often find myself typing e....
0
votes
0answers
24 views

Microsoft Task Scheduler's: Schtasks.exe unable to register new task in Arabic OS (locale)

I created a task in MS Task Scheduler app using simple xml command approach: SCHTASKS /CREATE /SC DAILY /TN "TEST" /XML "C:\TEST.xml" When I try to register the task in an Arabic regional OS setting/...
0
votes
0answers
16 views

NSSM - Install windows service to run daphne server for django channels

I run the commands on a windows machine as shown below to start my server, D:\django_channels> django_channels_env\Scripts\activate (django_channels_env) D:\django_channels\djanog_project> ...
0
votes
0answers
19 views

Outputting setup.exe /? switches to cmd or txt file

How to output a setup /? to a txt file or within the cmd I tried setup.exe /? > example.txt but the result is empty txt file When i run setup.exe /? a popup with some help as text. i want to ...
0
votes
1answer
27 views

cmd Windows operator || and && in macOS Terminal?

In Windows cmd, I can use "||" and "&&" acting in accordance with the imposing resultant behavior. some command && (does because returned 0) || (does because it did not return 0) ...
0
votes
1answer
30 views

Command Line Number Line Not In Sync

I'm playing around with the command line. For some reason when I try to grab lines 439 - 445 the output I am getting is lines 375 - 381 instead. I use the tail command to jump to line 439 then use the ...
0
votes
1answer
24 views

append program's output to a file and display first n lines with a pipeline

What I'd like to do is to run a command, write all output to a file and display the first n lines. in this example n=10 One solution I don't really like is: ./program > tempfile ; cat tempfile &...
0
votes
0answers
18 views

Linux - Raspberry Pi - Keep portable dvd drive awake/alive

I am trying to use my portable dvd drive with my raspberry pi and I have gotten the drive to activate using mount "sudo mount /dev/sr0 /media/cdrom_a" and copy some of the files off of it, but about ...
0
votes
0answers
25 views

Running multiple Forfiles within a PushD for deletions in batch file

I'm trying to make a batch file to run from the Task Scheduler that will clean up some residual files left from a programme that converts video. At the moment I have: :: begin the script --> ...
0
votes
1answer
39 views

How to run a “subshell” command in windows vscode powershell terminal

I have this command: curl -s -H "Content-Type: application/json" -H "Authorization: Bearer @(Invoke-Command {gcloud auth application-default print-access-token})" https://speech/googleapis.com/v1/...
0
votes
0answers
41 views

PsExec Fails to Execute with Error Code -1073741502

whenever I want to run the following command in a remote server inside of our LAN with PsExec, it gives me the following error. It doesn't matter what I put instead of cmd, too. My macine's OS is ...
19
votes
1answer
2k views

Why doesn't CMD inherit environment variables on this machine?

For whatever reason, on a specific machine my cmd process doesn't inherit its environment variables from the parent process which launched it. Instead it reverts back to the "default" environment ...
-2
votes
0answers
21 views

How can I make this bot work and fix this key error, Twitter, Python 3.8 [closed]

Okay, so I have this bot I am making for twitter. The goal of the bot is to search for tweets starting with "I'm" and then I want it to copy everything that comes after "I'm." Then respond with "Hi ...
0
votes
1answer
25 views

How to connect to a Microsoft SQL Server from Linux shell?

I have the following problem: I am working on an Ubuntu Linux server (I have access only to the shell, no desktop environment) and I have to interact with a Microsoft SQL server to create some tables ...
0
votes
0answers
235 views

Windows Batch - How to check if curl had a specific error? [closed]

In my batch file, I have created a loop for downloading some files from a site. Usually all downloads can be completed correctly, but sometimes I obtain some errors and curl returns to me a errors ...
0
votes
0answers
18 views

Launch Clipboard History (Win+V keyboard shortcut) through CLI

Is there a way to open the Windows 10 Clipboard History through the command line? E.g., explorer.exe ms-screenclip: opens up the Screen Clip in Windows 10. I also didn't find anything in regedit. HCU\...
0
votes
0answers
7 views

nnn and lf alternative for fast file navigation in command line?

I am looking for an alternative to lf or nnn. A quick file browser / file path selector that will allow me to quickly navigate through the directories and would CD to the selected directory on quit. ...
0
votes
0answers
39 views

How to inject JavaScript in firefox from command line during launch

I have numerous aliases for Firefox which enables me to land on pages directly. Trust me, this has saved me lot much time especially while working with AWS web console. I usually jump into specific ...
0
votes
2answers
127 views

Is there a way to make sed not wait for complete lines?

sed seems to process its input line by line. This is usually not a problem, but if you have really long lines, you can run into issues. For example, the following command never outputs anything: { ...
1
vote
2answers
43 views

How to run a batch file after Microsoft Office 2016 has closed

Years ago, when I was running Outlook 2003, I had an add-in from CodePlex called OutlookBackupAddIn that would execute a batch file whenever Office 2003 closed, allowing the most current .PST file to ...
0
votes
0answers
16 views

Apply replaygain for aac (.m4a) files via command line

I have several folders containing hundreds of .m4a files and want to scan for and apply replaygain (track gain) to all of them. I have tried using mp3gain but it obviously cannot process .m4a files. ...
2
votes
2answers
24 views

Create nested directory from parent directory in Windows 7 when using Bash in Cmdr

First I do this: mkdir firstFolder Then: mkdir firstFolder/secondFolder Here an error occurs. The command line interface returns "incorrect syntax". What is the right syntax? I am using Bash upon ...
0
votes
0answers
17 views

How to setup scp with custom parameters?

I want to setup a centos server from where users can copy files using their user id, password and a key. Based on the unique key I want to give the user access to multiple files. Have figured out a ...
0
votes
0answers
26 views

Concatenate a strings received from command line arguments in BATCH

I have a batch file that fills couple of variables received from command line argument and I would like to concatenate these variables: @echo off :GETOPTS if /I "%1" == "-d" set DIR1=%2 & shift ...
0
votes
2answers
40 views

Parsing command line argument in BATCH file

I have picked up following example to understand parsing of command line argument in BATCH file: @echo off :Help echo sumit :GETOPTS if /I "%1" == "-h" call :Help if /I "%1" == "-b" set BASE=%2 &...
1
vote
0answers
17 views

Why I can't use apt-get command on an Ubuntu VM running in my client datacenter? Temporary failure resolving 'archive.ubuntu.com'

I am not so into Linux. On an Ubuntu VM on a client production environment it seems that I can't use apt-get command. I will try to explain the situation in details: first thing: at the startup of ...
0
votes
2answers
71 views

Remain in the current working directory in BATCH file

I have one root directory from where I am running master batch file, which call another batch file(2nd batch file) present in sub directory of root directory. After the execution of 2nd batch file, ...
0
votes
0answers
31 views

How do I start Chrome with specific window size, position, and profile?

I'm trying to open Chrome to a specific user while also having a specific window size and position using CMD on Windows. It seems that I can either open to a specific profile or mess with the window ...
0
votes
0answers
18 views

How to remove Chrome login keyring requirement in Ubuntu 18.04 via command line

I'm writing some bash scripts to set up an Ubuntu 18.04 LTS (Bionic Beaver) environment As described in this question, I've been prompted with an unlock your login keyring request every first time I ...
0
votes
1answer
75 views

How to remove a parameter set in an alias from command line

I have an alias for "ls" set like this: alias ls='ls -lh' If at some point I wanted to perform a one-time regular ls without either of those parameters (without l or without h), how would I do that ...
0
votes
0answers
30 views

Why does Notepad++ get “confused” if you open several files with stated row/column numbers in rapid succession?

Peruse this command of mine, run from PHP CLI with one of its system command execution functions: "C:\Program Files\Notepad++\notepad++.exe" "C:\blablabla\test.php" -n123 -c10 Whether I run that ...
0
votes
1answer
39 views

What is the name of the font that the Windows 7 Command Line uses? [duplicate]

I'd like to know the name of the font that is referred to as the "Raster 8x12" font in the Windows 7 command line, does anyone know?
0
votes
1answer
29 views

Is there some way to bring a command prompt/terminal “to the front” (focus) from PHP CLI?

I often launch "background scripts" from my PHP CLI scripts. That is, a cmd.exe window starting minimized (grouped). However, I sometimes want to programmatically "bring it to the front", for example ...
0
votes
0answers
25 views

Accessing xclipboard history from command line

When I want to get the last element in the clipboard I just xclip -o. I'd like to get the n element. Is there any way of getting elements from the history? I can see in my xclipboard indicator that ...
0
votes
1answer
43 views

Returning values Batch files that CALL functions with SETLOCAL set

SETLOCAL ... ENDLOCAL innoculate local variables so completely that Functions which try to compute values and return them fail. Typically, these are functions that parse files and strings with for-do ...
0
votes
2answers
164 views

Adding variables in a batch file in Windows

I'm trying to fix something that's simple but yet can't seem to put my finger on it. I have this very simple batch file that when you drop a folder on it it converts a bunch of files to another ...
1
vote
0answers
35 views

How to eject a drive from the command line in Windows 10?

I've been searching but only find this nonsensical page where some person is apparently lying about there being an "eject" command: https://www.techulator.com/experts/1789-How-eject-CD-ROM-using-...
1
vote
1answer
28 views

CMD cipher /e on a folder output “Request not supported”

I've recently discovered cipher command on windows-10 command-line. Now, the problem is when I'm try to execute cipher /e [directory name] or cipher /e [absolute path], because I'm always receiving ...