General :: Rpm -qa Doesn't Return A Result

Jul 3, 2010

I have an Ubuntu Linux on a VMWare running and I've installed RPM Package Manager. However when I try to query all packages using the rpm -qa command, I don't get any results returned.

View 2 Replies


ADVERTISEMENT

General :: How To Grep - Internet Doesn't Give Any Result In System

Dec 17, 2010

I want to search files (basically .cc files) in /xx folder and subfolders. Those files (*.cc files) must contain #include "header.h" AND x() function. Clearly, I wanna list of *.cc files that have 'header.h' & 'x()'. They must have two strings.

I tried several ways, and got only files with header.h OR x(). Some examples given in Internet doesn't give any result in my system. I am using Fedora 8.0 in my PC and I have grep 2.5.1 version.

View 5 Replies View Related

Server :: Kdump Doesn't Result In Dumps?

Feb 14, 2010

I have a dumb question but the google can't seem to answer it. When (if?) my host locks up (RHEL 5.4) I generally don't get anything in /var/crash . kdump is configured correctly and works (if tested using ` echo "c" > /proc/sysrq-trigger` as per Red Hat's KBase article) but in the real world, when the system locks up nothing ever ends up there.

So, on to the dump ( ) question - I have to crash it using Ctrl + SysRq in order to get anything out of this, right. If the box is comatose and doesn't respond at all to the point of being power cycled, it's all gone isn't it? Volatile memory being what it is and all; or is there some sort of magic / voodoo in place that makes it survive the reboot. And no, my Dell PowerEdge 1950 doesn't have battery backed RAM, so i'm quite sure that unless i can kill it through sysrq ...

View 2 Replies View Related

Programming :: HTML::LinkExtor Doesn't Work \ Always Return 0 Links Even If The Status Code Is 200 OK?

Sep 25, 2010

I try to fetch links from a URL using HTML::LinkExtor, but it always return 0 links even if the status code is 200 OK. I am running the following code in Ubuntu 9.04, just curious if the module is too old and its ways of HTTP request is disabled by some platforms.

Code:
#!/usr/bin/perl
use HTML::LinkExtor;

[code]...

View 2 Replies View Related

General :: How To Know If The Command Find Any Result

Oct 21, 2010

#!/bin/shLOOK_FOR="NTLMAuthenticationFilter"for i in `find ./ -name "*jar"`doecho "Looking in $i ..."grepjar -e $LOOK_FOR $idoneI wrote the script above, and try to find if there any file name LOOK_FOR exist in those jar,my quest is: grepjar -e $LOOK_FOR $ihere how can I check if there are any successful result , and output them ?

View 2 Replies View Related

General :: Use Command To Open First Search Result With Vi?

Nov 10, 2010

Every time I need to find a file and then open it, I have to use :
find ./ -name **.properties. , then copy the result, and then vi "paste the result here" .
If I need to use a mouse, it can be a little trouble. So is there any better way to do this?

View 6 Replies View Related

General :: Why Does Du -sl Show Different Sizes For Source And Result Of Cp -rl?

Jul 14, 2011

I have used cp -rl to copy a folder. When measuring the size of the source and of the result of the copy du -sl returns slightly different sizes, even though diff confirms that their content are identical.Both folders reside on the same hard drive, no modifications to any of them have been done between the copy and the measure. I found nothing in the documentation of du and cp which could explain the difference.

View 1 Replies View Related

General :: Store Result Of Wc -l Command In Variable?

Apr 19, 2011

I want to store the result of wc -l as a variable so I can use it later in my script...so far unsuccessfully.

I have tried this:

set `echo awk '{ print $1, $6}' | wc -l` | echo $1

but it is far from working.

View 11 Replies View Related

General :: CLI Commands To Generate Random Result From Specified List?

Jul 20, 2011

List of 77 lines with the names of movies. For ease, let's say it's in a text file. What I want is a command line argument I can pass that'll read each line and pick one of those 77 lines at random, except I can't figure out how to do this. Is there a program I can just pipe the output of 'cat listofmovies.txt' to?

View 13 Replies View Related

General :: Acpi Result In Hardstatus Line In Screen?

Apr 15, 2011

the command acpi gives me the percentage of battery that my laptop has.I would like to print the result of acpi in the hardstatus line of "screen".

View 5 Replies View Related

General :: Assigning Query Result Into A Variable/file?

May 25, 2011

I am connecting to MySQL DataBase using shellscript and writing a select statement like select attachmentid from attachments where pageid=10175 I want to store the output of the select statement into a shellvariable or a file. How can i do it using shellscript.

View 4 Replies View Related

General :: BASH Script Will Not Get Use Result Of Command When Run As Cron Job?

Jul 1, 2011

I am frustrated by running a script on the Fedora 14 computer as a cron job. I paste the code:

Code:

#!/bin/bash
#a backup script to copy data from sda to sdc
ROOTVOL=`blkid -U ea210a08-6212-4dc8-be1c-23fce3b965bc`

[code]....

So when I run this as root, for example:

Code:

# /root/myscript

the result is what I expect:

Code:

Jul 1 13:41:16 svn root: ADMIN: Executing backup-svn
Jul 1 13:41:16 svn root: using blkid ea210a08-6212-4dc8-be1c-23fce3b965bc as /dev/mapper/vg_svn_backup-lv_root

[code]....

View 3 Replies View Related

General :: Check Character And Then Replace Depending On Result?

Oct 26, 2010

I have a CSV file with 8 columns. I want to check the 5th column, which will contain a single capitalised letter. If that letter is say "B" I would then like to replace the 2nd column in the csv with an incremental number starting at 0 (basically a count) with a prefix of B (B0000001) Sample row would be:

Code:

C, 0109390,sfs,sfsf,B,blah,blah

Amended row would be:

Code:

C, B000001,sfs,sfsf,B,blah,blah

View 14 Replies View Related

General :: Use Result To Be Saved In Variable - Which Type Would It Be In Script

Feb 5, 2011

If I want to use that result to be saved in a variable, which type would it be in script? For clearing: let variable x and destination path is y/z

in prog.sh:
x=du -hb /y/z
echo $x

Q1: What type of x?

Q2: What option instead of -hb to presedent the size in kib?

View 11 Replies View Related

General :: Execute Command Inside First Directory Of Each Matched Result?

Aug 8, 2011

I am working at a client who has a project where code is a mixture of different source control systems. So a layout might be like this

project/a/.svn
/a/subfolder/.svn
/b/.hg
/c/subproject/.svn
/d/.hg

So I am trying to put together a simple command that when executed from the project folder will run the appropriate hg/svn command in each project i.e:

[Code]...

Since the client has many such projects, Instead I am looking for a solution similar to find -exec where the svn/hg commands are automatically executed on each first level of match (i.e. svn up is run in the project/a folder but not in project/a/subfolder). How can such a command be constructed ?.

View 1 Replies View Related

General :: Minimalist Server - LFS Too Complicated And Time Consuming For End Result

Oct 7, 2010

I am wanting to create the smallest server I can possible. I have a small server I use as a print server and for file sharing. The hard drive is about 80GB. Since I only run cups and samba, I see no reason to take up an addition few GBs with major distros just to run the OS. I know it is possible to get a small distro around 50MB or so. I would even be happy with an OS running around 200MB. what would be the best way to go about doing this? LFS is just too complicated and time consuming for the end result. Would something like Gentoo be better? Anything else that I may not know about?

View 11 Replies View Related

General :: Sudo And Command Line - Get The Result Without Having To Supply A Password

Mar 31, 2011

I have the following commande /sbin/fuser -f -u /u/DT01/F010107 1>/tmp/null 2>/tmp/seausr.T0069 when executing as root 'su' this give me all user using the file. but when tried with 'sudo' i am asked with 'user password'. Is ther anyway to simply get the result without having to supply a password and to see all user not only me. (i have the file open also).

View 1 Replies View Related

General :: Result Of Shell Script Failed In RHCE - Exam

Jan 7, 2010

i've just appeared RHCE exam. i passed RHCT....but got only 36% in rhce part. but i configured all the servers correctly. i wrote shell script of iptables and i successfully run it. i wrote the following scripts....

[Code]...

the result of shell script showed ok when i tested during exam. i didnt know why i failed in rhce..?? is there any problem in the above scripting..?? BTW i checked all the servers and i found ok after rebooting machine.

View 8 Replies View Related

General :: Script To Access Sqlplus And Use The Output To Replace The Result In Another File?

Aug 30, 2010

I am trying to write a script to access sqlplus and use the output to replace the result in another file. But I am having some issues with it (This script is just a test script and I am just trying to print the updated value.

#!/bin/bash
I am not able to post the sqlplus connection, but it works.
bb=$a

[code]....

View 2 Replies View Related

General :: Result Of Type Command Is Hashed And Shows Another Path In Brackets?

May 30, 2011

I came across this reult of the type command (hashed) in another post. (see below).

Code:

fraespappp8:/data/apps > type topic_file_publish.sh
topic_file_publish.sh is hashed (/data/apps/pnbgstk/publication/topic_file_publish.sh)
This (result = hashed) is new to me.

I wonder which kernel/distro/shell it is from.

View 1 Replies View Related

General :: Using Sed To Extrac Data From Xml Tags And Make The Result Displayed In One Line?

Apr 18, 2011

I have an xml file that is similar to this.Suppose that this file name is Example.

<PMID>10605436</PMID>
<Year>2000</Year>
<ArticleTitle>Steroids</ArticleTitle>

[code]...

View 5 Replies View Related

General :: Write A Script To Access Sqlplus And Use The Output To Replace The Result In Another File?

Aug 30, 2010

I am trying to write a script to access sqlplus and use the output to replace the result in another file. But I am having some issues with it (This script is just a test script and I am just trying to print the updated value.

#!/bin/bash
a=`echo exit|sqlplus -S -L xxx/xxx@xxx @test.sql`
bb=$a

[code].....

View 5 Replies View Related

General :: Alt-ctrl-f1 / Would Not Return To A Gui?

Aug 12, 2009

ok, I pressed alt-ctrl-f1 and it displayed my screen with a gui. I then pressed alt-ctrl-f2 and it displayed a textual desktop. I pressed alt-ctrl-f3 and it displayed the same thing. When I pressed alt-ctrl-f1 to return to my gui, it would not let me return to a gui. I was stuck in a cmd line textual desktop.

How, without restarting, do i return to a gui once I press alt-ctrl-f2??

View 3 Replies View Related

General :: Get Return Value From Command Run Within Screen?

Jan 13, 2010

I'm trying to get a return value from the command running within screen. I have tried

Code:
screen "some_command ; echo $? > retval"
but this refuses to write "retval".

[code]....

View 1 Replies View Related

General :: Script To Return IP Address

Feb 11, 2010

I am writing a script that will give me the network address that a host belongs to, for example if a machine has a ip address of 192.168.1.4 I want the script to give me 192.168.1.0.

I am able to get the ip address echoed using:

Code:

I am having trouble getting the ip address stored as a variable so I can work with it, below is what I have

Code:

View 7 Replies View Related

General :: How To Return Path To Its Original Value

Jul 20, 2010

Alex accidentally deletes his PATH variable.what are some of the problems he may soon encounter and explain the reasons for these problems. How could he easily return PATH to its original value?

View 14 Replies View Related

General :: Why Does Md5sum Return A Dash At The End

Apr 19, 2011

why does md5sum return a dash at the end:

Code:
$ md5sum
string290350295 -

How can I remove this using the md5sum tags?

View 2 Replies View Related

General :: Return Value Of Tftp Is Always Zero In Cronjob?

May 15, 2010

I have called an script in cronjob named get_mac.sh as follows:

#!/bin/sh
MAC=`ifconfig eth0 |sed -n 1p|awk '{print $5}'|awk -F : '{print $1$2$3$4$5$6}'`
ARG_FILE="/etc/asterisk/scripts/server.params"

[code]....

View 1 Replies View Related

General :: Yum Update Script With Return Value?

Jul 27, 2010

I am trying to automate yum update of specific package on a remote machine.So far I have this:

#!/bin/bash
# Update my system
if ! yum update w3m
then
failure=1

[Code]...

View 3 Replies View Related

General :: Harddisk Formatting With Dd Return Error?

Apr 2, 2010

I tried to format my harddisk (160 GB) with the following command

dd if=/dev/zero of=/dev/sda

After some 3 hours, following error came up:

dd: writing to '/dev/sda' : No space left on device
312581809+0 records in
312581808+0 records out
160041885696 bytes (160 GB) copied, 10708.3 s, 14.9 MB/s

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved