The command tag has no wiki summary.
0
votes
0answers
47 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
38 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
138 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
44 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
36 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 ...
1
vote
1answer
43 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 ...
2
votes
1answer
89 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, ...
3
votes
1answer
98 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 ...
1
vote
2answers
98 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 ...
0
votes
3answers
69 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 ...
0
votes
2answers
77 views
Call 'script' command and exit it from within a bash script
I'm using the linux 'script' command http://www.linuxcommand.org/man_pages/script1.html to log all input and output in an interactive bash script.
At the moment I have to call the script command, ...
1
vote
1answer
240 views
changing network speed to 1000Mb/s
I am trying to change the server uplink from 100Mb/s to 1000Mb/s
ethtool eth0 output
# ethtool eth0
Settings for eth0:
Supported ports: [ TP MII ]
Supported link modes: ...
0
votes
2answers
87 views
How do I view my website stats via cmd line? [closed]
I use Wordpress for my website. Is it possible to use SSH or such to view the stats on my website? Via cPanel, I can see latest visitors, logs and errors. I just want to be able to view them via ...
1
vote
2answers
211 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?
0
votes
1answer
84 views
Ping -r command [closed]
I was trying "ping -r" command, while my system(windows Vista) is at different level of routers connected in series, and it was failing after 2 levels, i.e. upto router3 router1->router2->router3 it ...
0
votes
1answer
86 views
how to wrap the command1 return strings with single/double quotation marks (\'or\") to feed to the next command2? [closed]
For example, I want to use mplayer to play the music of several dirs, type like this in bash:
$find './l_music/La Scala Concert 03 03 03' './l_music/Echoes The Einaudi Collection' ...
2
votes
2answers
96 views
How to show high usage user's username with the top command, if the username is too long?
I'm having problem identifying high usage users on a shared Linux machine.
I use the "top" command and it does show which commands are using the most CPU.
But the usernames on this server all start ...
5
votes
2answers
2k 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.
1
vote
2answers
650 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 ...
-2
votes
1answer
58 views
backup tidy up script [closed]
I've looked around here for an answer to my question but it doens't look like anyone has so far got there.
I'm looking for a way to selectively DELETE files from a directory, so I have;
Every file ...
-2
votes
1answer
40 views
Changing tar parameters
I'd like to change the command I'm actualy using to put files in a tar archive in order to achieve this:
1) Remove directories tree from the archive (actually the .tar.gz file mantains the tree of ...
0
votes
1answer
152 views
Adding Linux kernel command line parameters
I would like to increase the size of the vmalloc region from the default value, and pass vmalloc= as a command line parameter while booting. I am booting a uImage. In which file do I need to add the ...
2
votes
1answer
131 views
timeout duration on linux
I'm trying to run a command for 5 hours and 10 minuts.
I found out how to run it for 5 hours but I'm unable to run it for 5 hours and 10 minuts..
timeout -sKILL 5h mplayer -dumpstream ...
2
votes
6answers
202 views
Pass a pipe to a command that expects a filename
Say I have a command foo which takes a filename argument: foo myfile.txt. Annoyingly, foo doesn't read from standard input. Instead of an actual file, I'd like to pass it the result of another command ...
1
vote
1answer
975 views
Error when attempting to install network printer/driver using PrintUI command
I receive the following error when attempting to install a TCP/IP printer using PrintUI:
"Operation could not be completed (error 0x00000705). Windows cannot
locate a suitable printer driver. ...
0
votes
0answers
167 views
Unable to connect to mysql through JDBC Connector externally
I did silent installation of mysql by using following commands:
msiexec /i "mysql-5.5.8-win32.msi" /qn INSTALLDIR="C:\Program Files\MySQL" /L* "w"
echo MySQL mysql-essential-5.0.88-win32 installed ...
0
votes
1answer
367 views
how to rdiff-backup with list increments
I have already created nfs server and client for backup web server and cms server like at http://www.myee.web.id/2012/04/nfs-server-for-backup/
Then I installed rdiff-backup, for backup I running ...
0
votes
2answers
569 views
finding files on linux in non hidden directory
In the following command i want to search only only the directories which are non hidden how can i do this using the following command .Iwant to ignore hidden directories while searching the log file
...
1
vote
1answer
161 views
Diaspora server auto start when system start up in ubuntu
To start Diaspora sever, always need to cd to the /home/diaspora, then run ./script/sever
My server(Ubuntu 11.10) everyday restart. I want to configure the server(Ubuntu 11.10) to allow diaspora ...
3
votes
1answer
809 views
Whats “Birth” field in stat command output
I'm using Fedora-16 with ext4.Suddenly with stat command I can see something called "Birth".
# stat history_file1.txt
File: `history_file1.txt'
Size: 8944 Blocks: 24 IO ...
1
vote
2answers
483 views
What's the shell command of importing a sql into a db . (MySQL, CentOS w/ cPanel)
I have a big sql file (~ 60MB) exported from local development site, and I want to import to my server (running CentOS 5).
Lets say
the dump file is dump.sql, uploaded to the server.
the database ...
0
votes
0answers
255 views
Checkpoint SecureClient VPN : CLI mode
I use a checkpoint secure client to connect to client network. I wish to use command line mode to connect. The problem is that, we use smart cards, which requires pin.
At this moment, I am able to ...
0
votes
1answer
331 views
debian 'f' command?
top shows:
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
7476 root 20 0 1168 632 368 R 100 0.0 12:31.14 f
Which f?
claudiu@hussie:~$ which f
/bin/f
What's ...
2
votes
2answers
120 views
What does this command do on Linux? It is eating my CPU.
I have a VPS and I am hosting a game site on it. Recently my CPU went to 3000% and memory is going near full.
When I checked the processes I found this process eating the CPU:
Pid-1571 (Trace) ...
0
votes
3answers
165 views
Detect CPU Vendor on OSX
So, I considered asking here instead of SO because people here are more likely to be familiar with this stuff.
I'm currently using PHP to detect some generic stuff on the host OS. In this case, I'm ...
3
votes
3answers
3k views
Can I run a shell built-in command with Puppet?
I want ~/.bashrc will be source whenever changing its content. I created a bashrc class with something like this:
file { "/root/.bashrc":
ensure => present,
owner => root,
group ...
2
votes
1answer
386 views
How to install Windows service from command line while setting recovery options
I have a Windows service that I build on a build server and then install on multiple remote servers using Sysinternals PSExec and sc create. This was worked well to this point but I now have a need to ...
1
vote
2answers
838 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
3answers
191 views
Batch file function
I need to create a batch file that will purge data from an existing file. Basically SQL server management studios does not overwrite backup data; therefore after the backups have been run and the data ...
2
votes
3answers
500 views
Calculate highest time difference between log message in /var/log/messages
I need to calculate time difference between two log messages of /var/log/messages. As we know log messages prefixed by date & time , i want time difference between two log entries.
0
votes
2answers
240 views
Write environmental variable on client machines, based on AD information
i want to alter the logon.bat script for our AD users (windows xp/vista/7 machines and a few servers), so that it writes an environmental variable upon login based on some AD information, like "what ...
1
vote
2answers
249 views
Problems with commands to configure the NAT on CISCO ubr7200 series
I have a Cisco uBR7200 series CMTS with these features:
Cisco Internetwork Operating System Software
IOS (tm) 7200 Software (uBR7200-K8P-M), Version 12.3 (9a) BC9, RELEASE SOFTWARE (fc1)
Cisco ...
1
vote
1answer
307 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 ...
2
votes
1answer
92 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 ...
1
vote
5answers
2k views
How to log commands/logins in linux?
I'm feeling that some people are using the root, how i can log all commands and connections times including ips made to the server (ssh) from all users?
history command is not enough
0
votes
1answer
2k views
0
votes
1answer
99 views
Super simple question about about command line '$ node example.js'
So I'm working on my first node.js 'Hello World' on a linux machine and I successfully got everything going by running
$ node example.js
I went to the browser and everything worked fine. Going ...
2
votes
3answers
522 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 ...
1
vote
2answers
4k views
phpize command not found
I was installing memcache on my Cent OS 5 server and I am following this guide > http://www.howtoforge.com/php_memcache_centos5.0
And now, when I enter,
phpize && ./configure ...
0
votes
4answers
204 views
Removing old cache files - command help
I'm trying to write a command to help clear up old cache asset files. The files are always either .css,.javascript,.css.gzip or .javascript.gzip and i want to delete all files older than 2 days old.
...