Software :: Test The Return Code Value?

Jan 28, 2011

Im trying to test the return for 0 or greater. The code not working. How can it be fixed ?

<linux command goes here>
RETVAL=$?
echo "$RETVAL"
if ["$RETVAL" -eq "0" ]

[Code]....

View 2 Replies


ADVERTISEMENT

Ubuntu :: : Cifs_mount Failed W/return Code = -6?

Aug 2, 2010

I'm trying to mount a samba share from one Ubuntu server to another Ubuntu server and keep getting:

: cifs_mount failed w/return code = -6

I've searched cifs error codes on google and can't find anything about what it means. Anyone know what it means or has a link to a cifs error codes sheet?

View 3 Replies View Related

General :: Return Code 1 For Useradd Command?

May 2, 2011

getting a error return code for useradd commandthe return code is 1cite or tell me the explanation of return code 1 .

View 1 Replies View Related

General :: Get A Return Code For The Command Ldapmodify?

Mar 31, 2011

I need to get a return code for the command ldapmodify.I try this and didn't workrc=ldapmodify -a -v -c -p $PORT -h $SRV -D cn=$USR,cn=Users,dc=company,dc=com -w $PWD -f $LDIFFILENAMECOUNTecho "return code " $rc what exactly the way to get the return code of that ?

View 2 Replies View Related

General :: Read Carriage Return Code?

Mar 9, 2010

I have a text file have carriage return code ^L , ^K , I can use vi to read this code , can advise if I want to see this code , what can i do

View 4 Replies View Related

Software :: Utility That Does Nothing Other Than Return A Completion Code Of Zero?

Dec 6, 2010

In the main frame world there is a utility that does nothing other than return a completion code of zero ( IEFBR14 ). It would look like this:

Code:
In C:
int main(){

[code]....

View 2 Replies View Related

Programming :: Typeset -i Failing And Return Exit Code 1

Nov 18, 2010

I have this command in ksh:

1. typeset -i INTEGER INTEGER=aaa In all platforms except of Linux it is failing and return exit code 1 Why in Linux it is not failing? I must it for my number tests

2. The same for printf command. Only in Linux the bellow command is not failing: printf "%d" aaa

View 7 Replies View Related

Ubuntu :: CIFS VFS: Cifs_mount Failed W/return Code = -101

May 2, 2011

Having problems auto mounting a CIFS share.

These are the errors I get from the kern.log:

And here is the fstab entry:

I can mount the share manually...I am I missing something?

View 5 Replies View Related

General :: CIFS VFS: Cifs_mount Failed W/return Code = -11?

Apr 26, 2010

i am using Centos 5, i am trying to mount win2k3 server on centos machine.i am getting the following error.CIFS VFS: cifs_mount failed w/return code = -11

View 2 Replies View Related

General :: Return -1 Of Main But Get Exit Code Is 255? Why? Pls Advise.

Jun 28, 2011

I learn C++ reading the <C++ primer 4th>, question1.2 let me test if return -1 how the compiler handle this exit code.
and in gcc (GCC) 4.1.1 20070105 (Red Hat 4.1.1-52), I get this show:

[youxi600@Arthas C++ Primer]$ cat q1_2.cpp
int main()
{
return -1;
}
[youxi600@Arthas C++ Primer]$ gcc q1_2.cpp -o q1_2
[youxi600@Arthas C++ Primer]$ ./q1_2
[youxi600@Arthas C++ Primer]$ echo $?
255
[youxi600@Arthas C++ Primer]$
anyone can give me an advise? Many thanks!

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

Programming :: Write Some Code That Involves Creating A Function To Return A Vector Iterator?

Jan 21, 2011

I'm trying to write some code that involves creating a function to return a vector iterator.I'm not sure what is wrong.

Code:
template <typename T> class VectorTemplate
{

[code]....

View 4 Replies View Related

CentOS 5 :: Error Starting Gnome Settings Daemon - Unknown Return Code 1

May 20, 2011

Getting this error seemingly randomly at login:
There was an error starting the GNOME Settings Daemon.
Some things, such as themes, sounds, or background settings may not work correctly.

The last error message was:
Launch helper exited with unknown return code 1
GNOME will still try to restart the Settings Daemon next time you log in.
I thought I might be logging in to fast, but it happened again when I had waited several minutes.

View 9 Replies View Related

General :: Error Calling Get_folders: Launch Helper Exited With Unknown Return Code 1

Jul 18, 2010

hi..
I'm using ubuntu 10.04 and whenever i start nautilus from command line it shows error:

Code:
root@aduait-laptop:~/Desktop# nautilus
Initializing nautilus-gdu extension
** (nautilus:9990): WARNING **: Error calling get_folders: Launch helper exited with unknown return code 1
** (nautilus:9990): WARNING **: Error calling get_folders: Launch helper exited with unknown return code 1
** (nautilus:9990): WARNING **: Error calling get_folders: Launch helper exited with unknown return code 1
** (nautilus:9990): WARNING **: Error calling get_folders: Launch helper exited with unknown return code 1
** (nautilus:9990): WARNING **: Error calling get_folders: Launch helper exited with unknown return code 1

View 5 Replies View Related

General :: Test A Code That Needs To Have High DiskIO And DiskBisy In System Environment?

Oct 13, 2010

I need to test a code that needs to have high DiskIO and DiskBisy in a Linux environment. Is there any way that i can use to test this urgent need of mine.

View 3 Replies View Related

Software :: When View Browser (localhost/test.php) It Just Shows The Code Itself Instead Of Displaying The Phpinfo Page

Dec 19, 2010

I'm using fedora 14. And I have installed apache, PHP and MySQL. I tried testing PHP with phpinfo(). But when I view it view my browser (localhost/test.php) it just shows the code itself instead of displaying the phpinfo page. This is the content of my test.php page.

<?php
phpinfo();
?>

View 3 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 :: 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

OpenSUSE :: Consolekit Session Error "Consolekit Session Error, Unknown Return Code 0"

Apr 6, 2010

when i start my pc i have an error: Consolekit session error, unknown return code 0 when i click Ok it then starts my session

View 7 Replies View Related

Programming :: Selenium Java Code Into Equivalent Php Code?

Mar 30, 2011

I need to rewrite the selenium java code into its equivalent php code.

View 5 Replies View Related

Security :: Reset Facebook Password,facebook Send A Code To E-mail,this Code Can Be Sniffed By Sniff Software?

Jul 18, 2010

for reset Facebook password,facebook send a code to e-mail,this code can be sniffed by sniff software?

View 2 Replies View Related

Ubuntu :: How To Return To 9.10 From 10.04

Aug 4, 2010

how can i return to 9.10 from 10.04?

View 8 Replies View Related

Ubuntu :: Can't Return To Windows 7

Mar 22, 2010

i tried to install brug theme so i cant return to windows 7 which files should i paste here.

when i click to windows 7 option in grub boot menu it just returns me "GRUB"

View 9 Replies View Related

Ubuntu :: Return To # In Terminal?

May 19, 2010

after i start a process in terminal and you lose the # how do i get it back without quiting the process?

View 4 Replies View Related

Ubuntu :: Run Program From CLI Then Return?

Jan 9, 2011

I'm trying to figure out the syntax needed to run a command that will spew out output (which I don't need) but go back to allowing me to run other commands without closing that program.Basically I run:

Code:

./utserver

and it starts and gives output but I want to run other commands without needing to open a new tab or close that program.

View 4 Replies View Related

Programming :: Else &amp; Return Values?

Oct 12, 2010

i am having two small issues with a function i have made.sorry if it is a mess, i am still learning bash.the first is calling the nonpersistssh function (second line) and assigning the return value to nonpersistdiag.the function returns 1, but nonpersistdiag seems to only contain 0. i am unsure on how to proceed.the second problem is the nested else clause on line 10. it is a syntactical error. how would i declare it correctly?

Code: function endsession(){
nonpersistdiag=$[nonpersistssh]# a function that returns an exit code
sudo /etc/init.d/ssh stop; sshdiag=$?

[code]....

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

Software :: Return KDE To Default?

Mar 21, 2010

I was playing with kde, system tray and widgets. Now all system tray is gone, even if I add it I can not change its size etc. Also my other visual features have changed accidently as well. Plus I can not retrieve workspace icon (4 small windows). I want to return kde to its default setting, like first time.Dist is Slackware 13.0 64bit and Kde 4.0

View 3 Replies View Related

Programming :: Return And Exit In C

Jun 3, 2011

What are the uses of return 0, return 1 and exit statements in C

View 4 Replies View Related







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