Questions tagged [command]

186 questions
0
votes
2 answers

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, then run my bash script, then exit. I want to run the…
0
votes
1 answer

how to wrap the command1 return strings with single/double quotation marks (\'or\") to feed to the next command2?

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' './l_music/Ludovico Einaudi - The Royal Albert Hall Concert [2 CD]…
0
votes
1 answer

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 new vmalloc command line parameter so that it is…
Rai
0
votes
1 answer

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 command like below: # rdiff-backup…
user1316095
  • 37
  • 1
  • 2
0
votes
2 answers

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 find /home/tom/project/ -name '.log.txt' …
Rajeev
  • 251
  • 1
  • 4
  • 10
0
votes
1 answer

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 that? claudiu@hussie:~$ man f No manual entry for f How…
Claudiu
  • 1,207
  • 5
  • 21
  • 28
0
votes
4 answers

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 trying to detect CPU vendor. To do this, I…
Christian
  • 466
  • 5
  • 23
0
votes
3 answers

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 transferred, I need to purge the file using a…
GMitch
  • 500
  • 4
  • 12
0
votes
1 answer

detect specific device is USB / SATA apart from dmesg output

Suppose in a linux machine you have both SATA and USB devices present, and if they are all detected properly, how do you know whether a specific device(sda1/ sdb1) is USB device OR SATA device. Note: devices needs to be manually mounted. Note:…
kumar
  • 433
  • 3
  • 10
  • 23
0
votes
1 answer

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 back to the command line, I see the msg "Server…
Spencer Carnage
  • 165
  • 1
  • 1
  • 4
0
votes
1 answer

Will this code (command) work in a cron job, or do I need to put it into a file?

Some commands I use (i.e rsync) work fine in cron jobs; Will this: find /path/to/files* -mtime +30 -exec rm {} \; ...or do I need to put it into a file? I can test it myself soon, however asking may save precious time.
This_Is_Fun
  • 124
  • 1
  • 2
  • 11
0
votes
4 answers

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. I started with this command to test before passing…
robjmills
  • 990
  • 9
  • 26
0
votes
2 answers

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?
Kev
  • 984
  • 4
  • 23
  • 46
0
votes
1 answer

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 set optionvalue 249 IPADDRESS 10.0.0.0 255.0.0.0…
user19049
  • 487
  • 2
  • 14
  • 25
0
votes
1 answer

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 to learn if im going to be using a linux server.…
Solomon Saleh
  • 193
  • 2
  • 9