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

Monitoring router with Nagios using MRTG

I'm monitoring router's Bandwidth Usage in Nagios using MRTG. So if I'll not do this command periodically env LANG=C /usr/bin/mrtg /etc/mrtg/mymrtg.cfg I'll will get this warning in Nagios GUI MRTG data has expired (11 minutes old) and the…
Andriy
  • 115
  • 2
  • 8
0
votes
2 answers

How to write output from mytop to file

Our application is using a very busy MySQL database with lots of reads, sometimes I don't want to look at the MySQL log files, I just want the output from mytop for the last 5 minutes. How do I write the output from mytop to a file? Given that…
MrD
  • 235
  • 5
  • 11
0
votes
2 answers

Escape TAB in cmd.exe?

I need to pass a tab character into a program from the command-line on Windows. eg: grep "foobar" filename However, cmd.exe's auto-completion gets in the way. On Unix, you can hit Ctrl-V before the TAB to escape the special function of TAB. In…
user63144
0
votes
1 answer

Escaping a question mark on the MySQL CLI

How do you escape a question mark character in a string on the MySQL CLI? There are many methods to avoid having to escape characters, but from an ease-of-use perspective I would quite like to do some SELECT statements containing LIKE queries, some…
Metalshark
  • 527
  • 1
  • 5
  • 16
0
votes
3 answers

Commands to Python Script in Command Line ( except CTRL+C)

I have a Python Script, running in command line. In some machines ( maybe Linux, I don't know), I can terminate the service by typing CTRL+C. However, I can't do this in my Windows XP machine. Is there any Python script terminator that I can try…
Graviton
  • 2,865
  • 12
  • 42
  • 64
0
votes
2 answers

syntax of switch statment in Unix SunOS 5.9?

I have been searching for the proper Syntax to a switch statement for Unix SunOS. It seems I'm out of luck, perchance anyone can post an example?
Mohammad AL-Rawabdeh
  • 1,612
  • 12
  • 33
  • 54
0
votes
1 answer

how i can send and get file by using sftp?

how i can send and get file by using sftp ????
Mohammad AL-Rawabdeh
  • 1,612
  • 12
  • 33
  • 54
0
votes
3 answers

canceled sftp password Requests?

i write bash file contain sftp command ... but i have problem every time i execute bash sftp requests password of the remote server .. how i can give sftp password as default parameter ???
Mohammad AL-Rawabdeh
  • 1,612
  • 12
  • 33
  • 54
0
votes
2 answers

sftp remotly copy in bash file "unix"?

how i can write bash file to copy files from unix box to windows "remotly" box by sftp command ???
Mohammad AL-Rawabdeh
  • 1,612
  • 12
  • 33
  • 54
0
votes
1 answer

bash file to send an e-mail in unix?

i want to write bash file perform the following steps :- copy file from server1 to server2 if (copy success ) do nothing if (copy failed ) send e-mail to admin@company.com contain the following information file name [copy failed]
Mohammad AL-Rawabdeh
  • 1,612
  • 12
  • 33
  • 54
0
votes
1 answer

Virtual COM for Mac OS

IS there a way to create virtual COM ports in Mac OS and connect them to eachother?
TimothyP
  • 299
  • 1
  • 5
  • 15
0
votes
2 answers

command line tool to extract a token out of stdin stream?

I've been using this perl script to get a token out of stream on command line 1 #!/usr/bin/perl 2 3 $i = $ARGV[0]; 4 5 while () { 6 @tokens = split /\s+/; 7 print $tokens[$i] . "\n"; 8 } typical usage would be something…
Min
  • 31
  • 4
0
votes
3 answers

How to I find and kill remotely a process running on CentOS-5.x?

Context: Ran a backup thinking it'd take no more than 1-hour... and it's still going. The process is a MySQL DB backup that has the DB tables locked. OS: CentOS-5.x Goal: Find and kill remotely a process running on CentOS-5.x Possible Requested…
blunders
  • 813
  • 7
  • 14
  • 30
0
votes
3 answers

how i can read file and store its containt in variable?

I want to store number in file for example file number.txt contain 3242 I want to real this file and store its contant in variable for example variable number_var = number.txt so that number_var = 3242
Mohammad AL-Rawabdeh
  • 1,612
  • 12
  • 33
  • 54
0
votes
2 answers

where do i get .mdb and .pst file on my control station

I need help from you again, The customer has asked to locate for .mdb and .pst files .All this is required for the migration process.I 'm not involved while the migration is going on but I 've been asked to look for .mdb and .pst files celerra…