Questions tagged [command]

186 questions
0
votes
1 answer

One vagrant command to create and provision machine whether machine is created or not?

When my VM is not created, I can run: vagrant up or: vagrant up --provision but not vagrant provision, because of the warning: VM not created. Moving on... When my VM is created, I can run: vagrant provision or: vagrant reload --provision but…
kenorb
  • 6,499
  • 2
  • 46
  • 54
0
votes
1 answer

Write to file (Nagios3)

I try to make script/command in nagios3 at write in new file some data but nagios will not do that. I try that simple bash command: printf "something" > /path-to-file/new-file But nagios don't open/write file. I try direct i definition of nagios…
Gruja
  • 19
  • 7
0
votes
0 answers

Run a script if another process was spotted

I have CentOS 7 and looking for a sollution about a small issue. I want to have a sudo script to be run but only if the system executed a specific command remotely. For example: I've put my command into a PHP file and I can execute just by curl-ing…
Bert
  • 1,028
  • 1
  • 16
  • 33
0
votes
1 answer

SUDO command only works as root (Solaris 10)

After installing sudo in the system i am unable tu run sudo as a non-root user, when i try to execute any command i get: /usr/local/bin/sudo: cannot execute if i edit /etc/passwd to use a different shell i get: /usr/local/bin/sudo: permission…
Pablo
  • 1
  • 2
0
votes
1 answer

What does '-- --daemon' mean in start-stop-daemon?

On this man page for start-stop-daemon, there is an example: start-stop-daemon --start --oknodo --user food --name food --pidfile \ /var/run/food.pid --startas /usr/sbin/food --chuid food -- --daemon Can anyone explain what the last couple…
0
votes
2 answers

A few linux server questions

I want to use Dos Deflate, do I need to use APF or does this script work with CSF as well? What is the command to tell if APF is running? What is the command to tell if CSF is running? I am using my hosting company's free DNS service, yet my server…
Qasim
0
votes
1 answer

run remote command to save debian package list

I'd like to backup the package list(dpkg) of some remote computers to a backup server: all of them running Debian. I already configured the rsa key to login remotely as root on the other computers without authentication. How can I run a command like…
blade
  • 113
  • 4
0
votes
2 answers

how to identify a command prompt window?

Enviroment: windows 7 Currently i have machine on which we launch 2 batch files on system start up. These batch files internally run multiple programs by running on separate command prompt windows. So in effect, i have lets say 3 command prompt…
Schu
  • 123
  • 3
0
votes
1 answer

ssh into remote machine and execute parallel copy operation to network drive

Hi I have a remote machine that has a mounted network drive. I am trying to create a script that ask me for the name of folder I wish to copy, ssh into the remote machine and have it start the copy operation. parallel/concurrent copy is needed as I…
alan
0
votes
1 answer

task manager performance tab

I am trying to have task manager open on the Performance tab on startup on Windows 8, 8.1, and 2012 machines. I have gotten the task manager to open, but it always does so on the Processes tab and not the Performance tab. Can someone please help…
Deol_LA
  • 1
  • 1
0
votes
1 answer

Create Logfile for all fired commands on server

I want to maintain logfile for all fired command on server. We have more than 3 admins and I want to monitor all commands which are fired by these. Is it possible ?
user23750
  • 3
  • 2
0
votes
1 answer

Exchange 2007 - getting an item count from a specified date range

Using the command below in Exchange Management Shell, I am able to get a list of all mailboxes on our Exchange server, along with their display names, size, and item count: Get-MailboxStatistics | Sort-Object TotalItemSize -Descending | ft…
mblasco
  • 141
  • 1
  • 2
  • 7
0
votes
2 answers

How to run Linux system commands from web interface?

I'm looking for a clean and secure way to run specific Linux system commands from a web interface. Let's say I would like to sudo -u differentuser ping 0.0.0.0. The IP address is supplied by user in a HTTP request and I'd like to print the result on…
0
votes
1 answer

Alter new and existing session Command Timeout value

My first post so please me... I’m a self-taught DBA in a manufacturing environment full of engineers who like to fiddle. Although I have not given them sysadmin or any explicit extra rights I have an issue with some engineers running ‘killer’…
0
votes
3 answers

How to check the number of requests being served by server

Can any one help with the command to check the number of requests being served by apache web server. I know some commands to test the load of server, like top command to check the load on server and free -m command to check the RAM memory space on…
Jigar Savla
  • 29
  • 1
  • 2