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

0
votes
2answers
52 views

Batch file to replace row containing a specific string value

I have an interface file for example named RawData.txt which contains different regions of data which can range from a few thousand lines to nearer 100,000 lines of data.There is a mix of lines ...
1
vote
1answer
17 views

Command output not working after changing codepage

I've found a rather weird issue while investigating the twisted world of character encoding. In Windows, if I type 'tree' the command works as expected but if I then type 'chcp 65001' (which is UTF-8) ...
0
votes
1answer
37 views

If statement not working in cronjob

bash cronjob continues to create a new process even though my if statement tells it not to run if the process or port already exists...cat /etc/crontab*/1 * * * * root /opt/script.shalso tried:...
0
votes
0answers
35 views

Missing Command Line Installation option for Citrix Xenapp 7.15 VDA installation

I would like to deploy the Citrix XenApp 7.15 Virtual Delivery Agent to Windows 2012R2 servers that are intended to become "app servers" in a new Citrix site, using a command line to configure (since ...
1
vote
0answers
23 views

cmd prompt in windows 10 hangs after running bat routine

OS: Windows 10 (Home & Pro)I have several batch routines that I run daily, they are simple:• set date variables • run robocopy command filtering out certain directories • log all movements of ...
2
votes
0answers
22 views

fmt - use single space between sentences

I've noticed that fmt uses two space characters when joining sentences across lines.Command:$ fmt << EOFHello world. This is a nice place. And a nice website too. I come hereto ask ...
0
votes
2answers
28 views

Trying to use an environment variable in a .cmd script, getting the message “\Windows was unexpected at this time”

I need to access a windows environment variable in a .cmd script, it looks something like this, following the documentation on microsoft's support:if "%MY_ENV_VAR%"=="" (echo You must set your ...
0
votes
1answer
24 views

Sending emails with lotus notes using windows command line

According to sending an email with lotus notes using windows command lineRun the command notes.exe mailto:username@abcabc.com?subject="Test"?body="Test" in cmd, always open GUI instead of sending ...
1
vote
1answer
40 views

how to join “IF FOR batch” with “FOR DELIMS batch”?

here is 1st part of my script:@echo offcd /D "E:\[0] EE\feed\"if exist "*.ss" (if not exist "O.ss" (FOR %%A IN (*.ss) DO (IF /I NOT "%%~A"=="O2.ss" REN "%%~A" "O.ss" > nul 2>&...
0
votes
0answers
39 views

Win10 - Permission With Secondary Program

I have a front end program opening a command line program. When making changes in the Command Line's program settings directly it'll save per usual. However when using the Front End to operate the ...
0
votes
0answers
23 views

Bash/xdotool: command not found

When trying to use the mac bash terminal, specifically this:xdotool getmouselocation --shellThe terminal returns:-bash: xdotool: command not foundThis also occurs with the "watch" command. How ...
0
votes
0answers
31 views

Libreoffice - Find export filter parameters

Given this command line to convert a file into a jpeg image with LibreOffice:soffice --headless --convert-to jpeg --outdir . odf-fileI saw you can set some options like quality compression when ...
2
votes
1answer
35 views

Ctrl-Z sometimes requires Enter to return to shell prompt

I'm logged into the terminal (or terminal emulator), read man pages or read a file with less, etc. I use Ctrl-Z to suspend the foreground application, return to the (bash) shell, do something, go ...
0
votes
1answer
30 views

Command line to delete folder in remote Windows from Linux host

I use Linux and I have a remote Windows. I would like to try to delete folder in remote Windows (ex: C:\Temp) from my Linux by using command line. My attempts are:rm -rf IEUser@10.2.2.240/C/Temp...
0
votes
1answer
62 views

how to call a path from .ini file into bat command string?

I have a .ini file called job1.ini and this .ini contains information which I need to work with by injecting it on a specific spot in my batch script.batch script is in the same folder as my .ini ...

153050per page