Fedora :: Info On Command Script Programming?
Jul 22, 2011
I am very new to Linux and am taking a class on Introduction to Linux, but I am not familiar with Command Script. Can anyone direct me to a place where I can find more info (for a two year old) on command script programming? I want to be able to understand what it all means.
View 7 Replies
ADVERTISEMENT
Oct 13, 2010
When I an in Emacs, I want to call info pages like in terminal. E.g., info date will call the date info page, but when I in Emacs, I can only use M-x info call the complete info pages, but I only want to see the date info page. Then which command I should execute in emacs.
View 4 Replies
View Related
Jun 29, 2011
I need to find out hardware information for the below items under Linux:
CPU (and cores)
CPU speed
Memory
Hard disks
OS version
View 6 Replies
View Related
Jan 4, 2010
What commands would someone use if they wanted to see their group priveledges, like if they were in a super user group or various groups.
View 1 Replies
View Related
Dec 16, 2009
I'm using CentOS 5.4 x86_64 on my Dell Inspiron 1440. Is there any way I can get information about the battery(charge) through command line without X server.
View 1 Replies
View Related
Feb 24, 2010
I have an issue when running the phpinfo() command on a webpage. Occasionally the Default timezone setting shows 'utc', at others it show 'Europe/Berlin'. To prove I'm not going mad I screen captured a short video of the display changing while all I was doing was pressing F5.
The system is set to a European timezone i.e. both date and hwclock commands show 'CET'. There was an update to the Debian tzdata package which I installed at the beginning of February 2010. I'm not aware of there being a problem before that but I could be wrong about that.
View 3 Replies
View Related
Nov 16, 2010
I am trying to find a linux cmd line utility that will read info from an iso file. The problem I have is that the file is always corrupt so I cannot mount it because I only have around 100k of it but all I need is to extract the headers of what the iso contains. how I can achieve this I have searched the internet with no look at all.
View 1 Replies
View Related
May 25, 2010
Now I am use Xfce4,some window's tittle are different from the running commands!
So I hope to know which command can do like FvwmIdent !
View 1 Replies
View Related
Jan 13, 2010
How to get info (length, etc.) about music files in command line? Nautilus can show it on the file's Properties > Audio tab.
View 2 Replies
View Related
Mar 18, 2011
I've been searching high and low for a solution to my problem, and have not had much luck as to yet!The situation is: I have two files containing bits of info that both need to be included in a single command, such as a for loop, but as separate elements. What I need to do is basically this:Code:ssh <servers in list a> ls -la | grep <items in list b>Does anyone have any thoughts on how I might do this? Is it possible to do using bash scripting alone?
View 3 Replies
View Related
Apr 5, 2011
I cannot install Kubuntu 8.04LTS. When I run the Live CD and click to install it gets me the box that should show me my hard drives and possible partitions but the box is empty. I get the same when booting to the Live CD and clicking on install. I have had this CD since Kubuntu 8.04 was released. So not knowing what might be wrong I figure I will ask here for what to type in a command line to install it. I know it is an old version but it is the last one with KDE 3.5.
View 7 Replies
View Related
Nov 17, 2010
Is there a command line utility to tell me about what's inside a video file? Say I have a .mpg file. I want to know about the video stream and the various audio streams, the codec used for the video stream, the bitrate of the video stream, and so on.
View 5 Replies
View Related
Apr 14, 2010
i'm trying to setup my server box.. it's being setup as a web server, file server, and setup for me to be able to access it remotely (aka i do pc repair for windows users and it'd be nice to just know where ALL of my software tools are and get to them from there)anyways.. these things are almost all setup right now.. but the one thing i'm having issues with.. is the fact that this box does have 2 hard drives in it and i want to use both of them.. now i'm running straight command line and i can't find the info i need to reformat the second HDD (which is currently NTFS formated) and use it in this system... i'm running 9.04 as a server.. NO GUI INSTALLED! i need this with straight command line...What do i need to look for to figure this out? i'm having trouble figuring this out and it's really getting annoying..
View 5 Replies
View Related
Jan 16, 2011
how to work properly on the windows forms application in c++.
the thing is that i was able to produce in the windows forms application a web browser and I added a save button. So know I am able to navigate predeclared webpages such as [URL]and then I entered google's search box such as "spread of H1N1". and I surf a page such as [URL] I later save the page as text file on my computer.
I wanted to know how to organize the words in the text file ? i mean how can i just get the number of infected people in USA , number of infected in CANADA (if they exist) from all the text file and change it to a file with precise data.that is to eliminate the unneeded information such as the the characteristics and the useless ideas? and what if i also wanted to know the characteristics of the virus in a country+the number of infected?. How can i do it?
View 3 Replies
View Related
May 26, 2010
I want to get system info like up time, no of process etc. for up time i got the got from net but it is giving me error. i.e.
error:
Following is the code i m using
Code:
Whats wrong with the code?
View 2 Replies
View Related
Jun 23, 2010
I want to get info about network interfaces in C , is there any library for this purpose ?
View 1 Replies
View Related
Dec 30, 2008
I want to implement a cross layer approach. I want to pass the network information such as delay from the MAC layer to Network layer. Can you tell me the way I am new to this. I am using linux (fedora). I think some system call will do the trick. Correct me if I am wrong. (I want to implement QoS matrices)
View 1 Replies
View Related
Jan 11, 2011
I'm doing this manually, as I'm at work, and if I spent 2 days trying to figure out a script to do this they'd maybe take it as me not working and instead messing around. However what I want to do is pull the:
Contact name, Company Name, Address, City, County, Postcode and email from the whois info for a list of about 400 domains we own.
I think I need some kind of combination of dig, sed and awk to pull the info, then filter out the parts I need, however I've never done anything like this before so I need some advice on where to start.
I'm not looking for a full bolown solution, I already have the list of domains so I think it will be something like:
Code:
for x in {list of domains}{
dig x;
somehow grab name, company name, address,
write to file in csv
}
Am I looking at this in the right way, can someone get me started? Is it sed/awk I need or is there another too.
View 2 Replies
View Related
Aug 6, 2010
so i cannot install anything because update-info-dir file is missing from /var/lib/dpkg/info/ .. I've searched for the last day and a half for a way to fix this, but nothing. can't even update dpkg because of this. so how do I bypass or fix this so I can install stuff (this is a fresh install of ubuntu 10.04 lts Lucid Lynx).
View 9 Replies
View Related
Jun 3, 2009
I can't remember what it's called, but this feature of VC++ basically catalogs all the functions of a project, lets you right click on a function and go directly to it's declaration or definition, do not pass go, do not collect 200 dollars. it also gives you an info bubble of the variable types as you're typing a function's name.
this is a very convenient feature, and I'd like to use it with KDevelop, or really any full C++ IDE for linux. does such a thing exist?
View 1 Replies
View Related
Oct 21, 2010
I am developing an application whose executable is generated inside a certain folder hierarchy (say: /DevPath/MyProject/bin). My source code is located in a different branch of this hierarchy (say: /DevPath/MyProject/src). When my app crashes, its core files are stored in /DevPath/MyProject. I'm developing the app on a pc, but running it on a separate platform in which i can only execute it. Folder hierarchy is the same as above on both computers. Usually, when a new executable version is ready, we update both the executable and the source code on the target platform, transferring all the new /DevPath/MyProject folder on it. But sometimes it can really be a bother, so we update only the executable.
1)In the case we only update the executable, keeping an old source code version, and the app generates a core file, can i trust the backtrace produced by gdb in this case? I.e., does gdb need the latest source code files or it just needs the debugging information?
2) (More radical question ) Do i really need to keep the source code on the target platform for core dump analysis or i just need the executable?
View 1 Replies
View Related
Aug 25, 2010
I'm a linux newbie and scripting novice and I'm trying to pull auditing info and dump it into a file. I made some login changes so it would get audited but I don't want to have to sift through the log to see who the user was and what was done. This is what I have below here and I can't seem to get it to extract the info want using the event id. The "ausearch -a $10" from the script should get it from the 10th column but it's not working.If I can get this to work I would like to add additional aureport options.
#!/bin/bash
yyyy=`date "+%Y"`
mm=`date "+%m"`
[code]...
View 6 Replies
View Related
Jul 9, 2010
OpenSuse 11.2 (64 bit)
GDB 6.8.91.20090930-2.4
I ran GDB on a program and am receiving following errors,
Code:
anisha@linux-uitj:~/junk> g++ -g jk.cpp
anisha@linux-uitj:~/junk> gdb a.out
GNU gdb (GDB) SUSE (6.8.91.20090930-2.4)
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later [URL]
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-suse-linux".
For bug reporting instructions, please see: [URL] ...
Reading symbols from /home/anisha/junk/a.out...done.
(gdb) b readline
Breakpoint 1 at 0x400b90: file jk.cpp, line 19.
(gdb) r
Starting program: /home/anisha/junk/a.out
Missing separate debuginfo for /lib64/ld-linux-x86-64.so.2
Try: zypper install -C "debuginfo(build-id)=591af1afa33f255704fb6a60859b93d00e205302"
Missing separate debuginfo for /usr/lib64/libstdc++.so.6
Try: zypper install -C "debuginfo(build-id)=62220ad5c8941afb5d332c0c47d32f8beec8ac50"
Missing separate debuginfo for /lib64/libm.so.6
Try: zypper install -C "debuginfo(build-id)=57fc1891d8d9f419fb8c7fc06a8285563b53a47e"
Missing separate debuginfo for /lib64/libgcc_s.so.1
Try: zypper install -C "debuginfo(build-id)=0206e11fa8ca0db0633073adcbf1349a7871e1dc"
Missing separate debuginfo for /lib64/libc.so.6
Try: zypper install -C "debuginfo(build-id)=c5a3dfd66bf61fcdec9bc22153b2fbd0d6697960"
can't open input file (null)
Program exited with code 01.
(gdb)
View 1 Replies
View Related
Jan 17, 2010
I retooled my other script (thanks to those who helped) to work for resizing images for a netbook with 1024x600. Thanks to the ImageMagick website for help with the syntax. Here's what worked for me:
Code:
#!/bin/bash
for SRCFILE in /home/robert/Pictures/*/*/*/*/*/*/*
do
RELPATH=`echo $SRCFILE | sed -e 's//home/robert/Pictures//'`
DESTDIR="/home/robert/tmp/portable/${RELPATH%/*}"
[code]....
I figure anyone with a netbook is going to put a lower size/quality on their netbook and then keep the originals (music and pictures) on a different machine or an external hard drive.
View 1 Replies
View Related
Apr 2, 2010
Does anyone know of a C Language Data Structure Tutorial? I have not been able to find anything much to speak of myself.
View 4 Replies
View Related
Apr 26, 2010
Ive read a few books and a lot of tutorials on C but can't find this topic explained in a deliberate way.I can find bits and pieces but nothing thorough.
View 9 Replies
View Related
May 5, 2011
(bare with me as I am sort of new with scripting) I am trying to figure out how to run a script that does a basic chkconfig and to get only those services that are running, but changing the color of "on" to red in my output file. Here is what I am working with so far:
Quote:
#/bin/bash
RED=$(tput setaf 1)
BLK=$(tput setaf 0)
[code]....
*I had to substitute a "-" and <colon_symbol> for ":" in front of the on's, because the forum thought they were smiley faces (i.e. n) how to make the "on" to be red while the rest of everything remains in black text. I have been trying to read up on sed and awk, but it is still pretty much a mystery to me right now. There will be other things in the output file that I wouldn't want a rogue "on" to be in red, so just the instances of "on" in that one chkconfig return.
View 4 Replies
View Related
Oct 10, 2010
am running Centos 5.4 and would like to write a small perl script to collect some info from mysql.
so I went
yum install perl-DBI
yum install perl-DBD-mysql
then
nano perl.pl
---
#!/bin/perl
use Mysql;
[Code].....
Why can't perl find Mysql.pm? I guess because it doesn't exist as I ran find / -name Mysql.pm, and also could not find it.
shouldn't that file have been created and thus exist after I install perl-DBD-mysql?
View 6 Replies
View Related
Jun 18, 2010
Code: cmd='date | wc'
$cmd If this script is executed, an error is generated. The reason written was that "The execution fails because the pipe is not expanded and is passed to date as an argument".What is meant by expansion of pipe. When we execute date | wc on the command line, it goes fine.then | is not treated as an argument. Why?
View 4 Replies
View Related
Feb 16, 2010
I am trying to learn how to pass more than a one-command startup for gnome-terminal.
I will give an example of what I'm trying to do here:
Code:
#! /bin/bash
#
#TODO write this for gnome and xterm
USAGE="
${0##*/} [-x] [-g]
code....
However, running with the -g option to invoke gnome-terminal, I get a "There was an error creating the child process for this terminal" error.
This same error occurs if the gnome-terminal line is changed to
Code:
gnome-terminal -e mcTerm
Is there any way to pass more than one command on to gnome-terminal? I have tried various single and double quoting senarios and in a final attempt, I abstracted to an exported function all to no avail. Perhaps even though gnome-term is better at many things than xterm, xterm trumps it in this instance.
View 4 Replies
View Related