Programming :: Finding A Script To Detect The OS And Run A Command?
Apr 4, 2011I need a good way to detect if a box is solaris or linux and then be able to run out a os-centric command given the output...
View 7 RepliesI need a good way to detect if a box is solaris or linux and then be able to run out a os-centric command given the output...
View 7 RepliesCode...
To find the appropriate firmware without knowing the make or brand of your wireless chip, you can use the command:
#fw-detect
But apparently debian package do not offer this useful tool, well, certainly for sidux exclusively.
Is there a package of fw-detect eventually?
My collection contains some MP3s which have some glitches like
displaying the wrong duration on loading
minor jumps
suddenly ending despite the duration claims another minute remaining
noise
I'm looking for a tool that can detect as many of these glitches as possible and fix those that can be fixed (obviously e.g. noise can not simply be eliminated in most cases).
Is there a tool for Ubuntu that will detect whether I have a SATA or a PATA hard drive interface, even if there's no hard drive inserted?
View 3 Replies View RelatedI am looking for an application to detect mp3 duplicates using the mp3 spectrograph (sound wave matching) or something similar because simply I have many mp3 files that are the same but with different bitrate,ID3 tags,filesize
View 1 Replies View RelatedI want to be able to use Ctrl+R to have reverse-i search. Also if I press Shift+Up Arrow after typing the first few characters of a recently executed command then the shell should complete the command by finding the most recent commmand having the same first few characters.
View 1 Replies View RelatedI'm using Ubuntu 10.04 Lucid LTS. I have problem with my Ubuntu,Whenever I ran "sudo update-grub" command it did not detect my Ubuntu kernel nor Windows XP installation on another drive (I installed Ubuntu and Windows in different drive).It just display "Generating grub.cfg" and then "done". No "Found kernel..." message.
View 1 Replies View RelatedI'm looking for a way to get my IP address using the command prompt in Linux. I know when you type "ifconfig" you can get your local IP address (i.e. 192.168.0.103), but I'm looking for my IP address that I get from my ISP. How can I get this from Linux without having to visit some website?
View 3 Replies View RelatedMy professor is making us do a few c++ projects only with the command line. What do you guys recommend? Ive heard editors such as nano, vim, and emacs.
View 1 Replies View RelatedI have a many process running in my machine with similar command and the command is 'gzip'. It is running by a program in a file. How will I find out the file which is behind this command.
View 4 Replies View Relatedwhen i send any packet to anu destination and want to see he mac address of source and destination i am using the command tcpdump -qec1 but rather then getting the mac address of source and destination each time i am getting mac address of the system which is broadcasting. will anybody tell me how can i get source and destination mac address even if any other packet is also being broadcast to my network.
View 1 Replies View RelatedI want to know is there a command to find size of a folder.
View 4 Replies View RelatedWhenever I install Fedora other distros don't show up in GRUB. Windows shows up in "other," and I can see the other distro still intact when I run G Parted, but I don't know how to get it to show up in GRUB. Is there a terminal-command in F14 that probes other OS's on the hard drive and restores them to GRUB?
View 6 Replies View RelatedKernel 2.6.21.5, Slackware 12.0 A command line html reader, or a conversion tool from html to text is what I would like to know if any of you guys knows. It has not to do a perfect job. And it would be nice if it is a native unix/linux program.
View 5 Replies View RelatedIf there is a command I can use to find specific file types? Say if I want to find all the jpg's in my home folder, but they don't have the .jpg extension in the name, how would I do it? Or can I set some kind of size parameter to find them? The ones I want are all from my digicam and roughly the same size.
View 7 Replies View RelatedWould like a command line list of commands, that I can print out, I know this would be allot of pages. I have tons of books and the net, but its a royal pain searching for the right command, need something I can flip through.
View 5 Replies View RelatedI work under centos 5, I would like to know which command to use in order to find where the useradd command is geinstalled. Second How can I find the 10 last files sorted (reverse) from the /etc directory.
View 2 Replies View RelatedI am using NetworkManager Applet in Gnome to connect to the internet with a 3G modem. After last update few days back it changed the way it was recognizing the modem. I used to click on the NetworkManager Applet icon on the notification area and choose my configured mobile connection from the list. Because, as I said, I am using mobile broadband connection and I have to check via SMS my usage in order not to overcome the GB I am supposed to use (to avoid overpriced charge). In order to use Wammu to send/receive SMS I have to close the internet connection by right clicking on the NetworkManager Applet and uncheck "Enable Mobile Broadband" otherwise Wammu can't use the usb dongle because it's locked by the internet connection. Up to this point all is working exactly the same. Except when I uncheck the "Enable Mobile Broadband" the NetworkManager Applet disappears and I can only get it back with a reboot. Also I tried clicking on the applet and choosing "Disconnect" from the menu. The applet stays there but there are no more options for mobile connection. Only wired connections and VPN (whatever that is). In this case if I disconnect and reconnect the usb dongle it recognise it again. So my question is: Is there a way to make NetworkManager Applet to always stay aware of the usb modem without disconnecting or rebooting? Or at least is there a command that can search for new usb hardware without the described procedure?
View 6 Replies View RelatedI'm constantly going 'cd ../../../../'. Is there a command/alias that could let me go 'cmd 4' and I'd be taken back 4 directories?
View 8 Replies View RelatedI was doing some coding for school and i accidentally hit the button on my laptop to turn off the touchpad and everything started to bog down and slowly crawl or not do anything. So I reset the machine and the panel is completely backwards now. It still works fine but i would like it the original way. Is there a terminal command or setting i need to reset the panel?
View 1 Replies View RelatedRistretto is starting with my Xubuntu... My pc has only 125MB of RAM... Is there a command to prevent ristretto of starting with the system? Are there any other ways to let my xubuntu faster?
View 3 Replies View RelatedI am total new to linux as I worked mostly on RTOS (symbian). My problem is, I need to find the file IOSTREAM.H and I am following commands below:
1) cd /
2) find . iostream.h ( finds the file / directory from the current path)
It shows No such File or Directory
Is there a way to find out the currently installed packages and the corresponding command line to launch the package from a terminal. For example, I know that I have openoffice installed but I do not know how to find the command line to launch it.
View 5 Replies View RelatedI am using linux machine and execute a command vm-install to perform some operation. How would I find the exact location of this file.
View 1 Replies View RelatedI currently have Red Hat 5.4 installed and subscribed to red hat network for alert updates.The updates will be done by our administrator but I will like to check if the admin has done so on a weekly basis. Is there a command that generates a report or allows me to check if certain updates has been patched? I understand running a yum update will list all applicable patches. Should we just simply update all or only certain applications applicable to our organization environment?
View 2 Replies View RelatedI have been trying to code a program in C++ that must check for the correct syntax in order to operate. It must find ", " within the string, but I don't know why the compiler won't recognizes spaces.
Code:
#include <iostream>
#include <stdio.h>
#include <string>
[Code]....
So the user must input "<name>, <interest>" with the ", " (comma and space) but even if you respect the syntax the compiler will skip to the else condition. I don't know why, but if I put any other condition like ",s" it will work, but not with spaces.
I am working on a project that takes multiple blocks of memory that are no more than 1500 bytes in side and tries to compress them. Currently I just compress them and compare the old length to the new length. If the new length is smaller it copies the compressed data into the original datas memory space.The problem I have is when lots of these blocks of memory do not compress well its huge amounts of wasted CPU.
View 6 Replies View Relatedhow do I detect and kill zombie processes left from the command line of a Linux terminal?
View 3 Replies View Relatediam just trying to connect to server which accepts one client and server will read(blocking operation) infinitely, but After closing the client socket the server "read operation" is returning zero and "errno variable(in errno.h)" value is also zero. how can i detect whether a client socket is closed/active..?
client.c
Serv_Addr.sin_family = AF_INET;
Serv_Addr.sin_addr.s_addr = inet_addr("127.0.0.1");
Serv_Addr.sin_port = htons(26553);
if( 0 > connect (Serv_Fds,&Serv_Addr,sizeof(Serv_Addr)) )
{
perror("connect");
return 0;
[Code]....
I am looking for a good RSS program that can run on the desktop command line style.
View 3 Replies View Related