The tag has no wiki summary.

learn more… | top users | synonyms

2
votes
4answers
3k views

PowerShell script, showing commands run

I am playing around with PowerShell scripts and they're working great. However, I am wondering if there is any way to also show all the commands that were run, just as if you were manually typing ...
1
vote
1answer
34 views

Issue command on multiple systems at once using MCollective

Aim The aim is to execute a command on multiple systems at once using MCollective, e.g., touch /tmp/helloworld using MCollective-client creates touch /tmp/helloworld on all MCollective-servers: ...
4
votes
3answers
3k views

Linux: cat with separators among files

In Linux if you type cat *, you will get something like this: line1 from file1 line2 from file1 line1 from file2 line1 from file3 line2 from file3 line3 from file3 What I would like is to display ...
1
vote
1answer
431 views

mysql won't run from command line

When trying to run the /etc/bin/mysql command from the command line, I'm returned to the prompt without any action. Restarting mysql via /etc/init.d/mysql restart shows the following error during the ...
-1
votes
0answers
27 views

How to run command after receiving email in Exim 4? [duplicate]

i want to ask how to run command everytime new mail has been delivered to vmail and include email sender and receiver in the command like: php ...
-2
votes
0answers
32 views

Run command after receiving mail in Exim 4 [duplicate]

i want to ask how to run command everytime new mail has been delivered to vmail and include email sender and receiver in the command like: php ...
1
vote
1answer
9k views

How to print list of users and groups on FreeBSD?

How to print list of users and groups on FreeBSD?
1
vote
2answers
982 views

Meaning of killall -0

I see from many place the follow command is used to check if a process exists, e.g. killall -0 nginx But from the documentation I can't see anything related to this argument, can anyone explain?
2
votes
2answers
2k views

Command to create MySQL database with Character set UTF-8

I use create database dbname; to create database. but I want it to created with Character set UTF-8 Anyone know what is the command to use?
-2
votes
1answer
41 views

How to get a process ID automaticly with command prompt [closed]

I´d want to know how to get a PID of a process with a single command in command prompt. I tried it with findstr, but I´m (apparently) not so smart to figure it out. You cannot use tasklist, because ...
1
vote
2answers
3k views

What is the command to enable 3rd party SFP+ transceivers on Arista switch?

Does anyone know the command that enables the usage of 3rd party SFP+ on an Arista 7148S switch?
0
votes
0answers
33 views

In what Cisco IOS versions is the “Show LLDP Neighbors” command available?

Could anyone help me with this? Or a place to find command and availability in versions or devices? I'm really new to networking. Thanks in advance.
3
votes
1answer
261 views

Meaning of requeues of tc command

I ran this tc bellow and it outputs requeues with high number, do you know what this requeues means? By the way, it keeps increasing over the time. I look at man tc but I couldn't find anything. $ ...
1
vote
1answer
331 views

Command apt-get -t wheezy-backports install linux-image-amd64

I have a server with Debian wheezy and kernel vmlinuz-3.2.0-4-amd64, hosted at OVH. I would like to upgrade the kernel. Normally at ovh, you can find some kernel already configured. but the files I ...
5
votes
1answer
2k views

Installing a php extension (xdiff) from pecl on Linux

I was getting this error on my php script: Fatal error: Call to undefined function xdiff_file_diff() I realised that I didn't had the xdiff extension installed. When I tried to install it using the ...
3
votes
6answers
2k views

Same command on multiple servers

I'm just wondering if there is any fellow sysadmin with the need to execute one command on multiple servers. If so, what technique are you using? I have grown tired to ssh-ing to 3-5 servers and ...
17
votes
7answers
29k views

Is there a global, persistent CMD history?

Sometimes I forget how the exact syntax of a CMD command looks and then I would like to search my own CMD history. Clearly, within the same session, you can browse it with the up and down arrow keys ...
1
vote
1answer
38 views

dsget error probably because of users with “-” in their name

I'm trying to run a dsquery/dsget that will result in users that weren't active for a month and that are not disabled: dsquery user -inactive 4 -limit 0 | dsget user -samid -disabled ...
9
votes
3answers
21k views

Nginx enable site command

We all know how to enable a website using apache on linux. I'm pretty sure that we all agree on using the a2ensite command. Unfortunately there is no default equivalent command comes with Nginx, but ...
1
vote
2answers
167 views

Can I find the list of ports being listened by a process ordered by the time of opening?

I know I can see the list of open ports using the lsof command. I am trying to view the results ordered by timestamp of listening. The process opens multiple (~6) ports and I suspect the order of ...
0
votes
2answers
846 views

why does sudo su; su tomcat doesn't switch to tomcat user?

In Redhat linux. from my user if I issue command sudo su -> changes to root su tomcat --> changes to tomcat user Why does tailing the commands in single line doesn't work? sudo su; su tomcat --> stil ...
0
votes
1answer
420 views

embedded white space in nagios arguments

I created my own nagios command $USER1$/check_http -H $HOSTNAME$ -p $ARG1$ -u $ARG2$ -e $ARG3$ -w 5 -c 10 -4 used by a new service. When the $ARG3$ contains some white space (for instance "200 ...
-1
votes
2answers
144 views

can't find the executable for the command linux 'source' [closed]

i am using ubuntu server 12.04 lts. I am looking for the executable of the linux command source i can not find in the /bin nor /usr/bin nor /usr/sbin nor /usr/local/bin . I used whereis source it ...
0
votes
1answer
89 views

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 ...
2
votes
4answers
1k views

Handy parsing for numbers with unit suffixes?

Let's say you have data with quantities in human-readable format, such as the output of du -h, and want to further operate on those numbers. Let's say you want to pipe your data through grep to do a ...
2
votes
2answers
110 views

how to browse a folder named '-' in linux machine

I have created a directory named - [root@server50 public_html]# mkdir - [root@server50 public_html]# ls -al drwxr-xr-x 2 root root 4096 2011-03-16 02:22 - How can I enter the directory ...
2
votes
1answer
208 views

Bash: two commands in dollar-parenthesis don't have same behavior

I don't undertsand why, in Bash: echo $(hostname --fqdn) works, echo $(id -un) doesn't (id: –un: No such user). Backticks give the same results. Is there some good practice for using this ...
1
vote
2answers
541 views

How to check that all ZFS snapshots within a pool are without holds before destroying that pool

Question Already I can check each snapshot of a filesystem individually, manually. I would prefer to check all at once (all with a single command or script). Please: can that be done with a ...
1
vote
1answer
284 views

Can sftp check for existing data?

I have 700 binary files (pdf) to download and right now only 400 are available on a sftp server. Can sftp, from the cli, determine what files exist in the local directory so it doesn't need to ...
0
votes
0answers
190 views

Need help getting two commands to run on startup (Seafile)

Trying to get the Dropbox alternative Seafile to run automatically on startup on my VPS running on CentOS 6.4. I want to get these two commands on startup. Noob here, any help will be really ...
10
votes
2answers
13k views

How to check if a RSA public / private key pair matched

I have two files, id_rsa and id_rsa.pub, what command can be used to validate if they are the valid pair.
0
votes
1answer
143 views

tail command not updating output for debug files

I know that tail -f /var/log/messages will be keep updating on screen as the contents of file gets updated. But when I tried the same thing with a debug file system's file it is not working , any ...
1
vote
3answers
142 views

Log ssh communications

I have a closed source program which calls server over SSH and executes a set of commands. Could you tell me how can I log all commands? My server is under Ubuntu.
-1
votes
2answers
107 views

Python script to log name, date, and command of every command users have entered

I want to create a script, possibly in python, open to suggestions, it logs every command typed on the server. so it would log, user, timestamp and command. Is this possible?
0
votes
1answer
113 views

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 ?
0
votes
1answer
203 views

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 | ...
-1
votes
2answers
152 views

nested Cmnd_Alias in sudo configuration

im trying to simplify my sudo configuration but not sure if sudo supports this configuration. I have a "view" command alias which we use to provide access to log files: Cmnd_Alias VIEW = ...
1
vote
3answers
124 views

Looking for a package that aliases commands on multiple remote hosts using ssh

i would like to find a program that maintains a list of commands that can be aliased for different hosts. for example, we have a database server, and four web servers. a common task is to login to ...
0
votes
2answers
342 views

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 ...
0
votes
0answers
227 views

shell command queuing system linux (like atd)

I need to queue shell commands depending on current available resources. I know of atd and it's exactly the type of tool I would like to find but with consideration for RAM and possibly disk ...
-1
votes
1answer
85 views

ssh argument command not passed

Doing this command: iptables -I INPUT -d xxx.xxx.xxx.xxx -p tcp --dport 80 -m string --to 70 \ --algo bm --string 'GET /w00tw00t.at.ISC.SANS.' -j DROP I got this error on ssh console: "bad argument ...
2
votes
2answers
815 views

Is there any way to convert a putty “All session output” log, with control characters, to a more human readable “Printable output” log?

We had a contractor in-house to help with some configuration of a product and we're trying to look through the putty logs he set up for us, but instead of using "printable output" he used "all session ...
0
votes
1answer
91 views

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 ...
1
vote
1answer
165 views

Extract ip, mask and gateway of a network interface separately

I know that the command ifconfig will give you ip, mask and gateway of a given network interface. I want to "programmatically" extract each of those paramaters separately. At the moment the best ...
3
votes
1answer
200 views

Is there any difference running dhcrelay with multiple process or single process?

I want to ask about dhcreay running mechanism. We can run dhcrelay with two command, then it will run as 2 process dhcrelay -i eth3 172.16.17.3 dhcrelay -i eth1 172.16.17.5 #ps ax | grep dhcre 26464 ...
3
votes
1answer
442 views

How can I determine valid Mac OS X Server `serveradmin` commands?

I've used Mac OS X Server's serveradmin command line interface for Server Admin.app & now Server.app for starting & stopping services, viewing status & settings, and occasionally running ...
1
vote
1answer
57 views

Ubuntu 11.10 Cron Job fails With - Not Found

I have a script that is supposed to run hourly. It was working fine for a while and then it seemed to stop working after some system updates were applied. At that point it stopped working and ...
4
votes
1answer
1k views

Why does rsync forks itself? And why one such forked process is almost kinda idle (as seen in iotop)?

This is referring to the matter stated here and I am also experiencing the same. In one of my servers, I ran an rsync, to backup a huge directory (size greater than 300 Gb) to a different disk, ...
1
vote
1answer
944 views

What is the function in Windows similar to Inode in Linux?

Is there any commands which is same as the function inode in Linux. Any info will be helpful.
0
votes
3answers
177 views

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 ...