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
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.
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.
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)
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?
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.
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
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"
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
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
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.
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?
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.
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
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.
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
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?
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
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?
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
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?
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?
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