The tag has no usage guidance.

learn more… | top users | synonyms

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

Is there a way I can queue long running tasks?

Is there a way I can do the following in a unix terminal: Start a long running process Add another long running process to start when the previous is done Repeat step 2 until I have queued the ...
0
votes
2answers
1k views

Newb question: “service” command unavailable on CentOS 5.5

Pages like this say that you can service iptables restart ...but I get a command not found error. I tried yum install service but there's no such package. How do I restart services?
0
votes
1answer
2k views

Netsh Classless Static Route DHCP Option

I want to add netsh command to set Classless Static Route 249 in DHCP Scope, I use this command but it gave me an erorr, I am using windows server 2003 R2 netsh dhcp server \SRVDC01 scope 10.0.17.45 ...
2
votes
1answer
2k 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.
1
vote
3answers
216 views

Where are all the places Windows environment variables set?

When I run cmd.exe and type 'set' I have a %LIB% variable set. The value is pointing to a folder that doesn't exist, which causes warnings during Visual Studio compiles. Here's the thing... If I go ...
2
votes
1answer
5k views

RSYNC and SCP differences

How does rsync differ with scp in terms of transfer speed, maximum transfer size etc ? Or they very similar ? And in what type of scenarios do we need to use these commands ?
0
votes
1answer
112 views

putty ssh client tuturial?

i really wanted to learn about using linux commands, so i can access my remote server, i wanted a good tuturial on how i can use this once for all, before i used always avoid it figure its important ...
1
vote
2answers
5k views

How Do i Add A LIne To A PIX Firewall's Access List?

I need to open a port on a PIX 515. Please can someone explain what I should be entering including the commands. For the purposes of the explanation (so I can understand it ) I've given the ...
0
votes
1answer
546 views

cisco commands to kickout users

I need a cisco router commands to end a user session at console port. The commands will be issued to the router using another software periodically. The purpose is to end a user session connected to ...
11
votes
3answers
5k 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
2answers
136 views

Free command with -o option

What does free command witj -o indicate , man page says it disables buffer adjusted line. It subtracts buffer memory from free memory. What does this mean
0
votes
3answers
260 views

how to find out offending user using tty information

I have an script called wow.sh on a shared machine. 'ps -ef | grep wow' shows multiple runs of the same script. How can I use the tty information to find the offending users ip?
1
vote
1answer
4k views

How do I view frequency of disk I/O wait states in Windows 7?

I can see most everything except this statistic between the Task Manager, Performance Monitor, and Resource Monitor. On linux, this is fairly easy to get at via the iostat command.
0
votes
2answers
120 views

Cisco command wont work on syxtax checker

I'm trying to validate the building of a tool for managing Cisco ACL commands. Thing is i'm using the aclcheck sintax validator (i dont own cisco equipament) with the following command do check ...
0
votes
2answers
745 views

Syntax checker working crazy with cisco

I'm trying to verify only two commands for cisco IOS ACL Extendend. They are: access-list 101 deny any 192.168.0.0/23 any access-list 101 permit udp 192.168.1.1 any For this i`m using a ...
0
votes
2answers
463 views

How do I do a nxdomain check?

my friend says this, but it doesn't work as it says "dig command not found" dig ns <domain>
4
votes
6answers
3k 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 ...
3
votes
1answer
3k views

mv directory to overwrite another

I may be going bonkers here, but I'm trying to move a directory to a new location, overwriting the contents (on Linux, using bash). Everytime I try it, it responds with "mv: cannot move `./src' to a ...
19
votes
3answers
3k views

What is /usr/bin/[?

I was just poking around in /usr/bin and I found an ELF binary file called [. /usr/bin/[. I have never heard of this file and my first thought was that it was a clever way of hiding a program, ...
2
votes
3answers
1k views

Giving PHP the permission to make a git pull request

I would like to allow PHP to execute a Git pull command. But there are some problems with the user and permissions. How did you solve the problem? PHP runs as user www-data. Therefore I've changed ...
1
vote
4answers
2k views

Create file with variable value in Unix

How can I create a file in unix or linux based on variable value ? Ex: If I store date in a variable in linux, YESTERDAY=`date --date='1 day ago' '+%d-%m-%Y'` it will store value to YESTERDAY as ...
0
votes
2answers
208 views

Best way to schedule a task that is be excuted years later

What is the best way to schedule a task that is be executed years later? Like execute a script after 4 years. Is cron the best method for that?
6
votes
4answers
8k 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 ...
12
votes
2answers
13k 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?
33
votes
6answers
75k 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 ...
0
votes
4answers
2k views

Problem with Outlook sending HELO / EHLO

i'm having a very strange problem - there's a client running outlook 2003 with 2 email accounts. they're configured exactly the same (except username/password), they both have "authentication-on-send" ...
1
vote
2answers
179 views

Using rsync and which directories should I place in my exclude file when using rsync?

I would like to use a CentOS VM for a mirrored full backup of my CentOS mail server. Both are the same version and are up-to-date. I have found that without excluding certain directories the VM backup ...
0
votes
2answers
265 views

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 ...
13
votes
2answers
15k views

When to use single-quote, double-quote in grep?

While trying to search for a simple pattern "hello" in a file, all the following forms of grep work: grep hello file1 grep 'hello' file1 grep "hello" file1 Is there a specific case where one of ...
1
vote
4answers
450 views

How to pass a string to a command (Linux)

I have a case where I am passing a content of a file to a command like this: cat file_name.txt | my_command But I want to pass a string directly, without reading a txt file content. So I want to ...
2
votes
2answers
2k views

Batch file to call multiple batch files and keep going after errors

I have a batch file like this, the issue that I have is that if the first batch file fails, the second one never gets started, how can I get them to both keep going? @echo off MapNetworkDrive_J.cmd ...
3
votes
2answers
1k views

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

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

How can I copy sanely (not using “Mark”) from the Windows command prompt

Given a very long single command at the command line in Windows, I'd like to simply copy that command into clipboard. I am just looking for the ubiquitous Shift-End , Ctrl-C type functionality almost ...
1
vote
5answers
2k views

Is there a command for monitoring network connections in realtime on FreeBSD?

I'm having problems all over our LAN where Firefox is not closing network connections when using our internal webapp. It closes some but not all of the connections, repeat this often enough and your ...
14
votes
5answers
27k views

Using SSH to remotely start a process

I have written a script that I am using to push and deploy a new service to several machines under my control, and in order to execute the process I am using ssh to remotely start the process. ...
5
votes
8answers
11k views

remote command execution on Windows 2003 server

I have a single command that I would like to execute on a remote Windows 2003 server. I have tried wmic, which works, but the only way to display standard output is to redirect it to a local file, ...
9
votes
10answers
4k views

Useful Commandline Commands on Unix

As there is a windows version of this question, I decided to open a community wiki for the same question under unix, linux, and the like. I'll be updating this list with the answers: bash: exec 3&...