The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
2answers
344 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>
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 ...
2
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 ...
16
votes
2answers
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
1k 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
202 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?
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 ...
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?
17
votes
7answers
30k 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
1k 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
168 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
263 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 ...
12
votes
2answers
9k 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
334 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
1k 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
959 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
666 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
454 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 ...
10
votes
5answers
17k 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. ...
13
votes
6answers
24k views

Capturing output of remote process from sysinternal's psexec

I'm trying to capture the output of the remote process from psexec (i.e. not psexec's own output). So, for example I could run "ipconfig" and print the output to a log file. I have tried: psexec ...
5
votes
8answers
9k 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, ...