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
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!
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.
I'm woring on a personal research project and would like to know if there are lilypond parsers for python available or I'll have to create my own. Just in case you are wondering: I don't need to typeset the content of the lilypond file, just understand what's written in the file (what notes, what duration, when in time to play each one, etc). [url]
I noticed that if I have "exit" in a bash script file., e.g. script.sh,that when the word "exit" is reached, and the script file being executed is not in the PATH nvironment, i.e. ". script.sh", the whole konsole shell profile is exited! What gives here? Is there another command compatible to "exit" to prevent this, or will I just have the leave the "." part in the PATH enviroment, which is, to my understanding, is not recommended? I desire for a "goto" function in bash script files
In linux, creating thread is same as process (clone()), except the virtual address space gets shared with the parent.If a running main process(thread) creates new thread, and if main thread exits, why should the new thread too exit? both are different entities, The same doesn't happen if the child thread exits, the parent thread would be alive.
It's been quite a run-around trying to get the Nvidia driver working.I have already followed a lot of instructions, at least onceI still get caught at "the pre-install script failed". When I looked at the script itself, it says it's "triggering an error status to prevent the installer from overwriting ubuntu's nvdia packages."Some say this script can be ignored, but it seems to be the only thing keeping my install from working.Some say install from root prompt, some say GUI OK. Some say d/l from NVIDIA, some from repository. I have been doing root, init 3, removing old drivers, etc..
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?
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 ?
using 'ntfs-config' to make ntfs partitions mount on bootup so that I can access my data partition from Ubuntu. The first time I installed ntfs-config it would not run. I uninstalled and reinstalled it and then it ran, but it didn't seem to be responding very well. I attempted to tick the partition I wanted and set it to be writeable. After I closed the app ALL my ntfs partitions were mounted, even the windows and system reserved partitions, and when I attempted to unmount them I got the following error:
Unable to unmount Data Error unmounting: unmount exited with exit code 1: helper failed with unmount /dev/mapper/isw_dfjjdefcdi_RAID5p4 is not mounted (according to mtab)
I tried rebooting. I tried uninstalling ntfs-config, then reinstalling it (now it wont run again). So I'm at a loss as to what to do. I simply want my data partition mounted on boot up and writable, not the others.
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
I have been running a live version on a 8 gig stick. Played nice for a couple of months but now when I try to access the native ntfs file system, I get the following error message.... Error mounting: mount exited with exit code 21: mount: according to mtab, /dev/sda6 is already mounted on /media/c
My computer has been acting quite strange lately. It's been taking longer to boot, and my sound doesn't play anymore (Only a high pitched sound is heard, and no hardware for sound is detected). Just recently, my Windows 7 Partition returned the error of Disk Error Occured. Press CTRL+ALT+DEL to restart.
Any way I can fix my whole issue, I think my desktop is starting to die on me :O (And its only about 7 months old T_T)
my windows xp system has recently been messed up, everytime i boot, i see the windows logo and then it reboots so i decided to liveboot ubuntu in order to recover the important files on my hard drive and then reboot. Problem is when i try to click on my "500GB Filesystem" I get this message.Unable to mount 500GB FilesystemError mounting: mount exited with code 13:ntfs_attr_pread_i:ntfs_pread failed:/input/output error Failed to read NTFS $Bitmap:Input/output error NTFS is either inconsistent, or there is a hardware fault, or it's a SoftRAID/FakeRAID hardware. In the first case run chkdsk/f on Windows then reboot into Windows twice.The usage of the /f parameter is very important! If the device is SoftRAID/FakeRAID then first activate it and mount a different device under the /dev/mapper/directory(e.g./dev/mapper/nividia_eahaabcc1). Please see the 'dmraid' documentationfor more details
Code: Select alldone. Setting parameters of disc: (none). Setting preliminary keymap...done. Activating swap...done. Checking root file system...fsck from util-linux-ng 2.17.2
[Code] ....
An automatic file system check (fsck) of the root filesystem failed. A manual fsck must be performed, then the system restarted. The fsck should be performed in maintenance mode with the root filesystem mounted in read-only mode. ... failed!
The root filesystem is currently mounted in read-only mode. A maintenance shell will now be started. After performing system maintenance, press CONTROL-D to terminate the maintenance shell and restart the system. ... (warning).
Give root password for maintenance (or type Control-D to continue): _
For now, I just don't know what I should to do next to my system has started to work again...
i am trying to install ubuntu from an SD card, i can run it from the card, and everything works fine, all but the install. i get to step 3 of 6. when pressing forward i get an error message ubiquity.components.partman failed exit code 141
I am re-installing Ubuntu onto my desktop PC which has Windows 7, openSUSE 11.2 and Fedora Core 12. First I tried Ubuntu 9.10. Near the end of the installation the machine reboots and the monitor shows the following message:
"Ubiquity.components.partman failed - Exit code 10. Further info in /var/log/syslog"
Tried again with Ubuntu 10.04 beta2 with same problem.
How can I view and read /var/log/syslog if Ubuntu fails to be installed and therefore I cannot access this log?
Keep receiving the following error message when i try to compile any code: Code: checking how to run the C++ preprocessor... /lib/cpp configure: error: C++ preprocessor "/lib/cpp" fails sanity check logs test out some code with the C preprocessor and fail, thereby failing the "sanity check" I reinstalled cpp, but to no avail.
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.
Accidentally the usb plug on my WD "My Book" got halfway unplugged and I didn't notice it. when I rebooted it, it wouldn't read the drive. I tried using G Parted to repair it but no success, it just runs forever accessing the drive and never finishes. (I left it running an entire weekend and it didn't finish) the drive is formated ext3.
When I try to mount the drive in Ubuntu 9.10 it gives this error message:
Strangely if I boot into Windows and use the ext driver I can access the drive just fine. is this something I can fix? if needed I can use Windows to do any repairs.