Software :: How To Assign Result Of Commans Uname -n Inside A Script

Dec 10, 2010

I am writing a script inside i need to get the values of uname -n like... var = uname -n. how to do it in shell script ?

View 1 Replies


ADVERTISEMENT

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

Red Hat / Fedora :: Mkinitrd - What Does [$(uname -r).img $(uname -r) Mean

Jun 25, 2010

# mkinitrd -v /boot/initrd-$(uname -r).img $(uname -r) what does it [$(uname -r).img $(uname -r) mean?

View 2 Replies View Related

General :: How To Use Uname -r

Aug 8, 2010

Some instructions say to put 'uname -r' into terminal commands. Is this supposed to be automatically converted by the system to something else? It doesn't get converted to anything on my system. uname -r only works by itself but not as a program argument.

View 1 Replies View Related

General :: Difference Between Uname -m -p And -i?

Mar 6, 2011

any one knows the difference between the uname -m, -p and -i?

Code:
uname -m
i686
uname -p
i686
uname -i
i386

[Code]...

i gt this from man. does it mean that the machine is a i686 machine that is running on a i386 OS?

View 9 Replies View Related

Fedora :: Debug - Kernel-uname ?

Aug 29, 2009

I got this message after a update some weeks ago and am now on a permissive opening.

Fedora 11

gnome 2.26.3

View 3 Replies View Related

Server :: Uname -n Node Name Change?

Feb 7, 2010

I want to change my servers node name which is the output of "#uname -n"Server is CentOS 5I searched but couldn't find. There was some search results about /etc/nodename but I don't have a file at that path. Also some said uname -S which doesn't work.

View 8 Replies View Related

Slackware :: How To Prevent Uname After Login

May 12, 2010

How would I prevent printing the kernel version after logging in? I cannot find any relevant setting in login.defs

View 4 Replies View Related

Debian Configuration :: Uname -a Show Two Kernel

Oct 5, 2015

I use Debian testing and when I run this

Code: Select alluname -a

I see these

Code: Select allLinux debian-mfaridi 4.2.0-1-amd64 #1 SMP Debian 4.2.1-2 (2015-09-27) x86_64 GNU/Linux

View 8 Replies View Related

Fedora Security :: Change Uname -a In Server?

Sep 27, 2009

I would like to know how to change the uname -a result in my server, i mean if the attacker upload a phpshell in any website for my customer, how could i have a fake uname -a for him?

View 7 Replies View Related

General :: Run The Uname -m Command And The Output Is I686?

Mar 15, 2010

I run the uname -m command and the output is i686.What does it mean ???

View 3 Replies View Related

Fedora Networking :: Kernel-uname-r Broadcom Error

Jan 5, 2011

You know, I thought I had my Broadcom issues all figured out, I have a simple list of installing the RPM Fusion repos do a yum update and yum install kmod-wl and everything works.However, this time it didn't work. I am installing a new fedora 14 for a friend who is totally fed up with windows and I get this error: (Yes I have searched the internet and Fedora forums for an answer)

[code]...

I have tried the two yum suggestions and they don't work I have tried updating the kernel and have installed kernel-devel-'uname -r' (suggested by another site) I have tried installing broadcom-wl and b43-openfwwf which only knocked out the card entirely

View 6 Replies View Related

Debian :: UName -r Reports Wrong Kernel Package

Jul 29, 2010

I am having issues trying to compile the alsa-linuxtant module and I am getting errors about not being able to find some files and the source needing to be reconfigured. Anyway the developers told me to try compiling on a pristine source to see if I could compile that way. When I went looking at kernel.org I did not find a 2.6.32-5 version. So I did some checking and to see just what version I have.

$ uname -r
2.6.32-5-amd64
$ dpkg --list | grep linux-image

ii linux-image-2.6-amd 64 2.6.32+27 Linux 2.6 for 64-bit PCs (meta-package)
ii linux-image-2.6.26-2-amd64 2.6.26-24 Linux 2.6.26 image on AMD64
ii linux-image-2.6.32-5-amd64 2.6.32-15 Linux 2.6.32 for 64-bit PCs

So the actual package that is installed is 2.6.32-15 but uname -r reports 2.6.32-5 as the kernel version.

View 11 Replies View Related

OpenSUSE Install :: Wrong Linux Kernel Version Reported By Uname -a

Jan 6, 2010

I am an openSuSE user for many years. My current installation is openSuSE 11.2. However, my first was SuSE 6.4 and I have been _constantly_ upgrading since then until reaching the current openSuSE 11.2. The technical issue I have been facing lately is with the kernel version of my current system: although it should be 2.6.31.5-0.1-desktop, as this is the one I have chosen via the online update mechanism and the yast2 system boot-loader procedure, grub shows it as preselected, the boot procedure in the end greets me mentioning this very kernel version, _but_ when I issue the command: uname -a in a command prompt, I am informed of using linux kernel version: 2.6.18.2-34-default #1 SMP PREEMPT

I am really quite puzzled, since I _cannot_ find any such vmlinuz file under /boot/ ! Could it be that my system properly runs with the expected kernel version, but uname mistakes it with a different one? Is there a way to determine the actual version of the linux kernel that my system currently runs with? If it's a problem with uname, have you got any suggestions that could potentially shed some light towards the origin/cause of the reported issue?

View 9 Replies View Related

OpenSUSE Install :: UName -a Reports Wrong Kernel Version After Upgrade

Jan 6, 2011

I did apply the updates on 11.1 32bit and upgraded the kernel from 2.6.27.45 to 2.6.27.56.

Now:
Code:
> uname -a
Linux myhost 2.6.27.45-0.1-default #1 SMP 2010-12-01 16:57:58 +0100 i686 i686 i386 GNU/Linux
but:
Code:
> cat /proc/version
Linux version 2.6.27.56-0.1-pae (geeko@buildhost) (gcc version 4.3.2 [gcc-4_3-branch revision 141291] (SUSE Linux) ) #1 SMP 2010-12-01 16:57:58 +0100

View 6 Replies View Related

OpenSUSE Install :: Wrong Kernel Version From "uname -r"

Oct 16, 2010

I'm booting kernel 2.6.34.7-0.4 (opensuse 11.3), but "uname -r" says version:2.6.34.7-0.3-default. What's wrong?

View 1 Replies View Related

Fedora Installation :: Yum Info Kernel-uname-r Produces "no Matching Packages To List"

Jun 25, 2009

Fedora 11 update released today creates a dependency issue in my x86-64 system: Processing Dependency: kernel-uname-r = 2.6.29.5-191.fc11.x86_64 for package: kmod-wl-2.6.29.5-191.fc11.x86_64-5.10.91.9-3.fc11.1.x86_64 # yum info kernel-uname-r produces "no matching packages to list" the yum info pack tells me kmod-wl is: Metapackage which tracks in wl kernel module for newest kernel so it seems important to have it up to date. What should I do?

View 5 Replies View Related

Debian Programming :: Generate SQL Result Into XML

Dec 2, 2014

How do I generate sql result into xml ? Tried this way (shown below), but it generates all data into single column.

Code: Select allgenerate_xml()
{
        f1=_tmp1
        f2=_tmp2
        cat $SQL_QUERY_OUT |sed -e 's/^"//g;s/"$//g;s/","/|/g'|tr '|' ' ' > $f1
        [ -e $SQL_QUERY_OUT ] && rm $SQL_QUERY_OUT

[code]....

View 2 Replies View Related

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 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

Ubuntu :: Redirect The Result To Another Tool?

Jul 6, 2010

After I use the 'find' command line tool to find a file, how can I redirect the result to another tool?

Example:
> find . -name blah.txt
Result: ./SomeDirectory/blah.txt

I would like to send that result to vim so I wouldn't have to type out "vim ./SomeDirectory/blah.txt"

View 7 Replies View Related

Software :: Cannot Obtain Any Result When Run Avgstats.awk

Mar 25, 2011

any1 have simple program which run avgstats.awk succuessfully? coz i cannot obtain any result when i run avgstats.awk. it shows

####################################################################
# Warning: no packets were received, simulation may be too short #
####################################################################
flowID: 0
flowType:
srcNode1: 0
srcNode2: 0

[Code].....

View 13 Replies View Related

Programming :: Get Different Result Of Matrix Op On Hw Rtw Book?

Jul 31, 2011

Dear Linux/c++/g++ programmers: the run result on my system, ubuntuLinux10.04(kernel2.6.35-25), gcc4.5.2 is not what book predict

source code
http://examples.oreilly.com/9780596007614/
11-28
11-29
11-24
#include "matrix.hpp"

[Code]...

View 13 Replies View Related

Programming :: Cut The String In The Result Generated By AWK?

Aug 5, 2010

I wanted to get the ORACLE_HOME of the listener's running on the server.I have been using the following to get the reult. /opt/oracle/admin/PHYPE/bdump> ps -ef|grep /bin/tnslsnr|grep -v grep|awk '{print $9}'

Result is as follows

/opt/oracle/product/10.2/bin/tnslsnr
/opt/oracle/product/9.2.0/bin/tnslsnr
/opt/oracle/product/10.2/bin/tnslsnr
/opt/oracle/product/10.2/bin/tnslsnr
/opt/oracle/product/9.2.0/bin/tnslsnr
/opt/oracle/product/10.2/bin/tnslsnr

Now i wanted to cut the /bin/tnslsnr part and the remaining should write to the file.

View 4 Replies View Related

Programming :: Setting The Final $result

May 18, 2010

I have a variable (call it $valAS) that gets calculated . Also, i have a files Bassu3. if $valAS= 45368 (2nd part of 2nd line in Bassu3) after calculation, then $result=45368, but if $valAS != 45368 then $result= $valAS

Bassu3:

Quote:

name.srv
name 45368 (value always changing)
name 99999
name 88888

how can i do this in Bash?

View 14 Replies View Related

Programming :: Specific Result Of Awk Script

Jan 24, 2010

I'm using the following awk command to find out the users home directory from /etc/passwd file.#grep jeesun /etc/passwd |awk 'BEGIN {FS=":"};{print $6}'But problem is when there are two name like "jeesun" and "jeesunadm" exist the script shows both result not specific one.

View 3 Replies View Related

Fedora Security :: Open The Programe But No Result Come Out

Jun 22, 2009

I have installed the rkhunter , but it does not work i kept on trying to open the programe but no result come out

View 2 Replies View Related

Fedora :: Add / Remove Package Do Not Have Result In Categories

Oct 5, 2010

In Add/Remove package utility, after click the categories, like Program, office, there is no result.Is it correct? Or how to fix it?

View 2 Replies View Related

OpenSUSE :: Can't Run Firefox - Running Directly With Exactly The Same Result

Sep 28, 2010

I'm running 11.3 with KDE. I'm not sure when this happened, but I can no longer run firefox. If I click on the firefox icon, the bouncing icon appears, runs for a minute and then disappears. If I actually type in /usr/bin/firefox, nothing happens, and I get the prompt back in a fraction of a second.

I note that /usr/bin/firefox is a softlink to /usr/lib/firefox/firefox.sh which apparently runs the _actual_ executable: /usr/lib/firefox/firefox. I tried running that directly with exactly the same result.

I can run firefox normally if logged in as root. I can also run it via /usr/bin/firefox and /usr/lib/firefox/firefox. I tried uninstalling, reinstalling firefox. No change. I'm running 3.10.xxxx and the problem _may_ have started with a recent update to 3.10 , but I can't be certain. I downloaded firefox 4.0 beta and it works, but it doesn't support many addons (like flash), so it's not very useful to me.

View 8 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







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