General :: The 'DOT' In A Shell Script Test?

Feb 21, 2010

I was looking at this line in an init file:

Code:
test -f /etc/default/postfix && . /etc/default/postfix
Which I understand to mean test that files /etc/default/postfix AND etc/default/postfix exist. Two things

[code]....

View 2 Replies


ADVERTISEMENT

General :: Shell Scripts Variables Test?

Aug 5, 2010

What will be the output of the following Shell Script?

Code:
a="1245"
[-n $a]

[code]...

View 5 Replies View Related

General :: Referance To The Bash Shell / Use The Test Command To Evaluate?

Nov 8, 2010

Cis 140 student.how to use the test command to evaluate whether the shell variable I create contains a referance to the bash shell? and use the echo command to determine the result.

View 1 Replies View Related

Ubuntu :: Test Command In Shell Script?

Aug 29, 2010

I was trying to write a script, but for some reason I can't test two variables using -gt:

a=`expr $currentSize + 0`
b=`expr $fileSize + 0`
[$a -gt $b]
this is what I get:
[22234534: not found

what is the problem? It seems like I can't check if a variable is greater than another but only if a variable is greater than a fixed number. Is that so? By the way the variables $fileSize and $currentSize exist and $a and $b have a value.

View 9 Replies View Related

Ubuntu :: Test Gnome 3.0 Shell On Virtual Box?

Oct 22, 2010

I have ubuntu 10.10 desktop .. and i wanna try The new Gnome shell?

View 4 Replies View Related

Ubuntu :: Still No Way To Test Gnome-shell In Virtualbox / Get That?

Jan 16, 2011

I've searched and read lots about trying to get gnome-shell to run in Virtualbox(v4) with no success on my end. Lots of the posts are outdated and are using Virtualbox 3.

So anyone have any tips or hints for testing the Gnome-shell? (I'd prefer to test in with 10.10 in Virtualbox 4, but am open to upgrading to 11.04 if necessary)

View 9 Replies View Related

Programming :: PHP - Ping Test In Shell / CMD Window

Mar 4, 2010

I'm trying to do the following. from a php webpage click on a link, that opens a shell/cmd and runs an open ping to the device. so it must actually open a shell (for linux) or cmd (for windows) and run a ping to the specified ip. Currently i'm running an exec command, but for this i need to wait for the result to be fetched and print it out. I want to monitor it in realtime, by just clickingon the button. How to get this working?

View 1 Replies View Related

General :: Execute Scen-20-test And Vbr-20-test In Ns-allinone-2.34?

Mar 26, 2011

I have created mobility of 20 nodes and vbr traffic using following attached script I executed the file as ns234 vbr.tcl I got the vbr.tr and vbr.nam but I was unable to load the graph using matlab <trgraph> I thought problem with is vbr.tcl script.

View 1 Replies View Related

Ubuntu :: Korn Shell: Syntax Error On Test A Function With Parameters?

Jan 4, 2011

Some may recall I recently gave up on bash, rather than give up my programming style.Surely I will have reason to return but that's another story. My little issue now:I am debugging a new [Korn] shell script. I have a function that performs a specialized match on a string and I see that I am able to call that function with no problem, with both of it parameters. The function does not do any print or echo command - it uses "return" for a TRUE (0) of FALSE (1), as is the shell exit code convention. Thus, I have the following test:

Code:
if [[ match_except_release ${PATH_DIR[$LC]} bin ]]
then

[code]....

View 2 Replies View Related

Programming :: Bash Shell Read User Argument From Command Line And Test It

Aug 29, 2010

Trying to create a small script that will read user's input, test if user entered some input and if not display some message or display a text using user's input.

The script is the following but i get an error saying "[: 6: =: argument expected"

View 12 Replies View Related

Fedora Servers :: Several Postfix - Test Antivirus Scan Using Eicar Test Virus ?

Apr 8, 2009

I have installed Postfix + Amavisd-new, then I am started all services (and configured main.cf and master.cf to use amavis).

The questions are:

1) I am trying to test antivirus scan using eicar test virus

Code:

And the message is successfully delivered to mailbox with mark "CLEAN" in maillog. But I cant see any attachment using

Code:

Where is my mistake?

2) Should I update clam and how I can do it?

3) Is spamassassin enabled by default in amavis (I have started daemon)?

4) Where configuration files of spamassassin is stored?

View 1 Replies View Related

Ubuntu Installation :: Warning - Can't Create Test File /var/lib/mysql/mosty.lower-test

Mar 15, 2010

I am trying to install mysql 5.1.44..so i downloaded the binary package, i extracted it and then followed the instructions that were in the manual but i keep getting this error when running this command

Code:

scripts/mysql_install_db --basedir=/home/mosty/mysql

the error is

Code:

Installing MySQL system tables...
100315 20:07:27 [Warning] Can't create test file /var/lib/mysql/mosty.lower-test
100315 20:07:27 [Warning] Can't create test file /var/lib/mysql/mosty.lower-test

[code]....

You can try to start the mysqld daemon with:

shell> /home/mosty/mysql/bin/mysqld --skip-grant &

and use the command line tool /home/mosty/mysql/bin/mysql to connect to the mysql database and look at the grant tables:

shell> /home/mosty/mysql/bin/mysql -u root mysql
mysql> show tables

View 1 Replies View Related

General :: $HOME/.bashrc Disabled When User Shell Is 'rbash' (restricted Shell)?

Jun 15, 2011

MACHINE: HP Proliant DL260G5OS: SLES 11 SP1kernel: Linux xserver 2.6.32.12-0.7-default #1 SMP 2010-05-20 11:14:20 +0200 x86_64 x86_64 x86_64 GNU/LinuxIt is used as remote xserver in a LAN.I have configured /usr/lib/restricted/bin/.rbashrc with some environment variables but when the users logon in the system finally is executed $HOME/.bashrc and some environment vars are overwritten.

View 2 Replies View Related

General :: Write A Shell Script Instead Of Shell Function?

Apr 27, 2011

I would like know when it is necessary or advisable to write a shell script instead of shell function ?

View 3 Replies View Related

General :: Open A New Shell From A Shell And Switch Between Them?

Jan 18, 2011

I am wondering if I can open a shell or new terminal thing from within the terminal in a unix/linux enviroment. Particularly a commandline only one where there is no GUI. Is this doable? how do I do it?

View 3 Replies View Related

General :: Best Way To Test A Distro?

Jun 25, 2010

What is the best way to test a distro? As a newbie, I am trying out several different distro's. I run them from a live CD and see if they are easy for me to set up my wireless, can be configured to multiple monitors, corectly recognize my hardware. I then connect to the internte and see if it plays videos or needs codecs downloaded, then connect to the reository and download any needed codecs, or pick a random program and see how easy it is to download and install.

Is this a reasonable way to check out a distro, or should I be looking at something else? Keep in mind, I am a newbie who is a user, not a hacker, and know nothing of the commandline yet.

View 3 Replies View Related

General :: Test Something With JMX Console?

May 30, 2011

I want to test something with my JMX console. I need to use the twiddle.sh script (because of a plugin).But when i execute this:

Code:
/opt/jboss-5.1.0.GA/bin/twiddle.sh -s localhost get jboss.system:type=ServerInfo ActiveThreadCount
i get this error:
Code:
Exception in thread "main" java.lang.NoClassDefFoundError: while resolving class: org.jboss.console.twiddle.Twiddle

[Code]...

View 1 Replies View Related

General :: Test An Rpm By Doing A Yum Install?

Jun 16, 2010

I am trying to test an rpm by doing a yum install. It should not install and report a dependency conflict as there is deliberately another package installed it should conflict with but it is installing over the existing package. When I do this via an rpm -i it correctly does not install.

Detail below -

The SPEC file has the conflicts below

Conflicts: test_DEV = 1-0, test_UAT = 1-0, test_PRD = 1-0

If test_DEV is already installed for 1-0 and I try and install 1-1 via rpm is correctly conflicts -

rpm -qa | grep -i test
test_DEV-1-0
rpm -i test_DEV-1-1.noarch.rpm

error: Failed dependencies:

test_DEV = 1-0 conflicts with test_DEV-1-1.noarch

Yet when I install both via yum it allows me to install 1-1 over 1-0 which I don't want.

View 1 Replies View Related

General :: Shell Scripting \ (test If A File Is Empty, If It Is Then Display "file Is Empty" Otherwise Display "file Is Not Empty")?

Oct 5, 2010

I am a final year student doign Computer systems engineering and just been introduced to linux. While still strugling to catch up with the commands, I am now given an assignment under shell scripting.I seriously am strugling to understand this question, can you please assist me.Here follows the assignment:

Operating Systems III
Some tips
e.g. (test if a file is empty, if it is then display "file is empty" otherwise display

[code]....

View 10 Replies View Related

General :: Tool To Test AES Encryption?

Oct 27, 2010

how to test the AES Encryption in the openSuSE 11.3

View 1 Replies View Related

General :: Apache Test Page Help

Aug 11, 2011

I am trying to set up a web page for the business and we have had the website or domain for a while but no one has put anything on it. I have never done anything like this before so i typed in the website and got the apache test page saying that i should add this: /var/www/html/

1) i'm not really sure what to add it to
2) i've tried adding it to the website url and that comes up with invalid page
3) could someone please explain in simple terms how i can get on to the webpage so i can start adding content to it?

View 1 Replies View Related

General :: Flag To Test Is Not Directory?

Mar 25, 2011

I found that this tests if a give filename is a directory or not:

Code:
-d "$FILENAME"

But what test for not a directory? I tried

Code:
-D "$FILENAME"

But this doesnt work?

View 1 Replies View Related

General :: How To Speed Test.net With Ssh Access

Jul 7, 2011

is there anyway i can speedtest.net with ssh access into my server ?

View 3 Replies View Related

General :: Why MemTest Repeating Single Test

Jun 20, 2010

Bought computer 11 months ago, immediately there were problems. What would happen is, when I logged in after a long period of shut down, the system would BSOD. Then I would restart and everything would be fine, until the next time I shut down for a long time (8ish hours) and got back on. I sent the laptop in (a couple times) and they eventually replaced the RAM and the BSODs went away. This is all on Windows 7 (well started on Vista, switched to Windows 7).

I recently set up a dual boot with Windows 7 and Ubuntu 10.04. I'm experiencing crashes on Ubuntu (the whole system just freezes, can't operate mouse, keyboard, or anything) and the behavior is similar. When I log on after a long period of shut down, the system will crash, but if I restart (actually I have to wait 10 minutes before I restart, if I restart immediately it will crash again) then it is fine, until the next period of long shutdown.

So I'm thinking it's bad RAM, so I downloaded Memtest and am testing each of my sticks (they are each 2GB) individually in the same connector thing (don't know what it is called, whatever the sticks attach to). The test for the first one passed with flying colors. However, the second one is having problems. On test #2, the memtest repeats itself, continuously looping through 0-32767 errors on the right side.

My laptop is an Asus G50VT
The 2 most interesting lines...
Highest Error Address: 000fffffffc - 4095.9 MB // does this make sense? 4095.9 MB on a 2GB stick?
Test 2: 32767 // the 32767 loops back around to 0 and repeats

View 1 Replies View Related

General :: Windows - Test A Bunch Of Audio CDs?

Nov 28, 2010

I have fifteen Audio CDs - an Audiobook - that I haven't used in ages.

I would like to pass them on, but before doing that, I want to check whether they still work flawlessly.

Is there a Windows or Linux program that I can use to quality test a CD? Is possible, with a detailed explanation of any errors it may find, and whether they will cause problems listening to the CD?

View 1 Replies View Related

General :: Run The Testusb Test Application In Ubuntu Pc?

Dec 7, 2010

I was trying to run the testusb test application in my Ubuntu pc. I have plugged a USB stick into my PC. and ran "testusb -a". But it says like "no test devices recognized". Here is my /proc/bus/usb/devices

T: Bus=05 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 2
B: Alloc= 0/900 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 1.10 Cls=09(hub ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=1d6b ProdID=0001 Rev= 2.06

[Code].....

View 4 Replies View Related

General :: Best Way To Test Graphics Card Performance?

Apr 9, 2010

I've recently been experimenting with glxgears, but found people saying this is not an ideal benchmark tool as there are many variants; for example resizing the window affects the FPS tremendously.

I'm interested in testing the difference between using the proprietary ATI driver and the open source driver and also the performance under various distributions.

What's the best software to benchmark graphics cards?

View 4 Replies View Related

General :: Test Latency / Communcation Between Two Cores?

Feb 17, 2011

I have a four-cores machine (core1,core2, core3, core4 ). I want to test the communication or latency between two cores (for example, core1 and core2; core3 and core4). Does anyone know how to write a code to test it under linux operating system?

View 1 Replies View Related

General :: JAVA_HOME In Bash Script Test

Sep 4, 2009

I was wondering why

Code:

Is echoing NO even though

Code:

View 2 Replies View Related

General :: Localhost CD Test - Permission Denied

Sep 16, 2009

When I create a folder in the system, it's created successfully
Code:
[test@localhost localhost ]$ cd test/
-bash: cd: test/: Permission denied
drw-rw-r-- 2 test testinstall 4.0K Sep 16 18:51 test

View 5 Replies View Related







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