Questions tagged [command-line-interface]

A command-line interface (CLI) is a mechanism for interacting with a computer operating system or software by typing commands to perform specific tasks.

A command-line interface (CLI) is a mechanism for interacting with a computer operating system or software by typing commands to perform specific tasks.

1564 questions
0
votes
1 answer

Command to delete specific lines after searching for a phrase from a file

Am looking for a help in Linux command that performs/does the following: Searches for a particular word/phrase case-insensitively in a given file, and then remove/delete the immediate next 'n' lines including the line where the word/phrase was…
Gnanam
  • 1,459
  • 13
  • 26
  • 32
0
votes
1 answer

Two-way rsync between two servers

I read about rsync but I want to ask how can I do the following by rsync: I have two files in to different machine (UNIX-AIX) and have the same name. server1 : ..../file.txt server2 : ..../file.txt I want to apply the following in two server to…
Mohammad AL-Rawabdeh
  • 1,612
  • 12
  • 33
  • 54
0
votes
3 answers

Does a command-line config tool exist for the Clariion CX

On SANs with Mylex RAID controllers there is a command-line utility called mlxcfg that allows one to configure the SAN. Does such a utility exist for Clariion CX SANs and is it free to use without licensing for Navisphere?
0
votes
1 answer

how i can read n first bit command output in windows batch file?

i use checksum command in my batch file and the output of command as follow : 69514a29dc44cd83b42658e917ed9baf *file.txt i want to return checksum only so i should store it in variable without file.txt…
Mohammad AL-Rawabdeh
  • 1,612
  • 12
  • 33
  • 54
0
votes
2 answers

Bactch files: if-then-else and for loop syntax on Windows?

I want to write a batch file and we want to use if-then-else and for loop statements, but I don't know it and its option. Please can anyone help me?
Mohammad AL-Rawabdeh
  • 1,612
  • 12
  • 33
  • 54
0
votes
1 answer

import configuration file when batch start ? (OS=Windows)

I write batch file and it has a large number of variable so i decided to put all variable on text file (conf.txt) and import it at the beginning of batch file so please i need the command line do this task (import the conf.txt to the batch file) and…
Mohammad AL-Rawabdeh
  • 1,612
  • 12
  • 33
  • 54
0
votes
1 answer

calling a different python interpreter from bash command line

I have python 2.7 installed [user@localhost google_appengine]$ python Python 2.7 (r27:82500, Sep 16 2010, 18:03:06) [GCC 4.5.1 20100907 (Red Hat 4.5.1-3)] on linux2 Type "help", "copyright", "credits" or "license" for more information. I…
0
votes
5 answers

Send encrypted mail using GPG by command-line?

A few days ago I asked about how I can secure email and many people advised me to use PGP tool, and I read about it and I use it. Now I want to write a batch file to send encrypted email with attachments. I know how I can generate key, exchange key…
0
votes
1 answer

Simple way to undo a lot of table-specific grants in MySQL

I have set up some table specific grants in MySQL, but when I log on as that MySQL-user it still has full access to all tables. I'd like to wipe all the GRANTs and start them over. I'm running a Debian Linux server, using command line commands…
Kzqai
  • 1,278
  • 4
  • 18
  • 32
0
votes
2 answers

Disable a microsoft update item via command line

We have 5000+ servers and need to hide the 2008R2 SP1 so that our users don't accidentally install the service pack. I can use PSEXEC, powershell, ect. Is there a way to do this from command line so that we don't have to use the gui on each of…
0
votes
2 answers

How can I install man pages from FreeBSD server via console command?

How can I install man pages from FreeBSD server via console command?
Eonil
  • 10,459
  • 16
  • 36
  • 54
0
votes
1 answer

Super simple question about about command line '$ node example.js'

So I'm working on my first node.js 'Hello World' on a linux machine and I successfully got everything going by running $ node example.js I went to the browser and everything worked fine. Going back to the command line, I see the msg "Server…
Spencer Carnage
  • 165
  • 1
  • 1
  • 4
0
votes
3 answers

why spamc keeps getting me 0/0 when I test it?

on my centos 5 I've installed spamassassin and I want to execute it from php using the command line client. The problem is that each time I run it, I get as result: 0/0 here is how I run it echo "VIAGRA" | /usr/bin/spamc -c -F…
Gabriel Sosa
  • 1,220
  • 1
  • 13
  • 13
0
votes
2 answers

Create a user in the Active Directory with Command-Line

I can to add a user in a Root-OU with dsadd command-line.But,I can't to add to in a Sub-OU. How can I add a user to a Sub-OU with dsadd command-line? Here is my command-line. dsadd user "cn=XXXX,ou=TEST,dc=mycompany,dc=com" -upn XXXX@mycompany.com…
Cell-o
  • 327
  • 4
  • 15
  • 32
0
votes
2 answers

Edit local user account remotely: set passwordreq:yes

I'm using Net user username /passwordreq:yes but I need to do this on a bunch of machines. I can run a batch through SCCM, but would like to do it with a script. Anyone have a way to do this? Thanks! -Mathew
MathewC
  • 6,957
  • 9
  • 39
  • 53