Questions tagged [command]
186 questions
5
votes
1 answer
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 install pecl xdiff command, I got this errors…

Wilson Silva
- 151
- 1
- 5
5
votes
6 answers
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 executing the same thing over and over again, so I'm…

w00t
- 1,164
- 3
- 19
- 35
4
votes
1 answer
How to find the ip address of the pc that sent a shutdown command?
I'm a system administrator in a school. We have a classroom with 20 PC's in a domain, and all PC's use the same user to log in.
Sometimes students use the shutdown command to shut down the PC's of other studetns.
In the system event log of the PC…

Johan Claes
- 65
- 2
- 10
4
votes
2 answers
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 in root. Doesn't switch to tomcat

prashanth
- 141
- 1
- 1
- 3
4
votes
1 answer
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.
$ tc -s qdisc ls dev em1
qdisc mq 0: root
Sent…

Leandro Moreira
- 549
- 1
- 7
- 13
4
votes
2 answers
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 output" which includes every keystroke including…

user162124
- 43
- 1
- 5
4
votes
2 answers
How do I know the old os level in AIX?
I am stuck to find what was the older/previous version of my AIX OS?
To find the current OS version we use :-
oslevel -s
what is the command to find the previous version from which it was upgraded?
Any help is appreciated.
I am stuck, could anybody…

user101418
- 141
- 3
4
votes
4 answers
Is there a Unix-type command to kill all processes with a certain name?
I run a script called "delayed_job" for a Ruby on Rails application. One of the options is to run this proc with a separate monitor proc. When the main proc dies, the monitor will spawn a new one. I can also run multiple processes. Each will have…

user114055
- 155
- 1
- 7
4
votes
2 answers
Ansible command ignore creates
I use command module with creates on an ansible 2.9 role.
However, sometimes I need to ignore the creates arg and re-run the command multiple times.
Is there any way I can override the default behaviour and force the execution of the tasks?

trikelef
- 518
- 1
- 7
- 26
3
votes
2 answers
Delete all files & directories in a folder except one file
I want to delete all files & directories in a folder say 'A'. But except one file in that folder say .keep. I have tried the following command.
find A ! -name '.keep' -type f -exec rm -f {} +
But above command also deletes folder A. I do not want…

Dushyant Joshi
- 101
- 1
- 10
3
votes
1 answer
Windows Command - Delayed Expansion Syntax to Echo The VALUE of a Variable That Contains Another Number Variable
I am trying to echo the VALUE of a variable whose name contains another variable ($project!$project_number!_control) while using delayed expansion. I can't figure out the syntax to do this. Here's the code:
@echo off
setlocal…

Bill Vallance
- 227
- 2
- 8
3
votes
1 answer
Trouble using powershell output as a variable in batch file
I can manually run this command from a Windows Command Prompt:
powershell (new-timespan -start 01/01/2000 -end (get-date)).days % 14
And it returns a number from 0 to 13. I want to use this result in a batch file, but this line gives an error…

pigeonpigeon
- 33
- 1
- 3
3
votes
2 answers
How do I send raw text to a printer on a Mac?
In windows you can use LPR
In Linux you can do lpr or 'data.txt > /dev/lpt1/'
How do I do it on a Mac?

sanbornm
- 105
- 1
- 6
3
votes
1 answer
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 what few commands I can find documented on random blogs.…

morgant
- 1,470
- 6
- 23
- 33
3
votes
1 answer
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 ? Ss 0:00 /usr/sbin/dhcrelay -i eth3…

ibrahim
- 431
- 1
- 7
- 20