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


ADVERTISEMENT

General :: Pass Carriage Return To A Command?

Feb 18, 2011

How can I pass carriage return to a command. I am writing a shell script whcih generates ssh key pair. It ask for input from user three times. I want to pass carriage return (ie. press Enter button) to this command. Is tehre any way

View 8 Replies View Related

Programming :: Pass Carriage Return To Command Through Script

Feb 18, 2011

How can I pass carriage return to a command in the shell script. I am writing a shell script whcih generates ssh key pair. It ask for input from user three times. I want to pass carriage return (i.e., press Enter button) to this command.

View 2 Replies View Related

General :: Translate "escape" And "carriage Return" Keys?

Nov 16, 2010

I need to send the following command to a device via the com port:

<esc>&PR1<CR>

How can I do that using the echo > /dev/ttys0 or minicom ?

In particular, I don't know how to translate the "escape" and "carriage return" keys

View 5 Replies View Related

Programming :: Termios Programming - Without Removing Carriage Return / Enter Key

Jun 30, 2010

I trying to write a UART(interfacing of serial devices) to linux machine but after I execute the following code to receive data I need to enter key (carriage return).... but I don't want to remove carriage return/enter key

[Code]....

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

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

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

General :: Read/Write Xml File Through C++ Code?

Mar 18, 2011

I am trying to write a C++ Code to read write a XML file in C++.I researched a lot and find xerces is used for that but I am not able to write the code for that.Please provide me some links on how to run a code that R/W a xml file in C++.

View 1 Replies View Related

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

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 :: How To Delete Carriage Returns In Vi

Jan 13, 2010

i assumed :i insert mode would allow to simply back space, no appearently not? it seems none of the websites anywhere on earth mention how to delete a carriage return in vi.

View 3 Replies View Related

General :: Write A C Code To Ping IP Addresses Which Are Read From A Text File?

Aug 3, 2010

i need to write a c code to ping IP addresses which are read from a text file and need to log the response time in another text file.

View 4 Replies View Related

General :: Why Can The BIOS Only Read And Execute Code And Data From Only Cylinder 0, Track 0 And Sector 1

Feb 25, 2011

I was just reading about the whole boot process on computers and am curious as to why the BIOS can only read and execute code and data from only cylinder 0, track 0 and sector 1 of the disk being booted from? Why can't the BIOS read from any other disk location?

View 3 Replies View Related

Ubuntu :: Allow Empty Return From Read Command?

Feb 19, 2010

I am writing a short script to do some backups.Here is a small section of it:

Code:
echo -n "Please enter your choice ..."
read CHOICE

[code]....

View 3 Replies View Related

Programming :: BASH Read File Once Then Return To Top?

Aug 8, 2010

I have a script that reads part of a line, delimited between the first and second intended part by a colon. Then it "chops" the part after the colon, which are words offset by commas (counting them beforehand so as to catch every word in the string's second part), like this:

Code:

"COLORS.JPG:red,orange,yellow,green,"
(Returning)
red

[code]....

single script that parses/breaks both parts of a line like this "COLORS.JPG:red,orange,yellow,green;blue,indigo,violet," so that the two parts, separated into single words (or two and three words, sometimes with spaces) can be used as single-line annotations and written to JPEG files using Exiv2. So far, I haven't been able to come up with a script that does this without one part of the total string(usually that part after the colon) becoming the first word in the second array. In other words, I look for this:

KEYWORDS:

[ ]red
[ ]orange
[ ]yellow

[code]....

Or vice-versa (ie, the second array winds up as a single-line "member" of the first). I think it's because I'm using a single while read loop to read the text file in which the filenames and substrings happen to be. If there's some way of reading a file once and going back to the beginning to read it again in another while loop, I haven't found it.

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

Programming :: Debian Serial Port Read() Return Wrong Data?

Jul 6, 2010

I am implementing a simple serial protocol where my ARM9 board, running Linux is communicating to a slave peripheral board. The Master sends a 12 byte data stream and the peripheral board returns status in a 23 byte response. The serial port is opened in raw mode. It works perfectly on 44 reads; however, on the 45 read the data returned from the read() is incorrect. I've framed what's being sent on an oscope and it is correct.The coincidence is that 23 x 44 = 1012. It's as though the receive buffer is 1K and when I go past the boundary I get bad data. The read following the bad one is good again.I've tried flushing the buffer before reading but get the same result.Here's the port initialization code:

Code:
int initport(int fd)
{

[code]...

View 4 Replies View Related

Programming :: Encountered When Read Vsftpd Code?

Jun 8, 2010

the version of vsftpd i read is 1.2.1, i find the following code in main.c: struct vsf_sysutil_statbuf* p_statbuf = 0; but i cannot find the definition of this structure.then anybody here can tell me what is the definition of vsf_sysutil_statbuf struct?

View 5 Replies View Related

Programming :: Kernel Module "read()" Return Value?

Apr 6, 2010

I wrote a character device driver for an Embedded Linux build (Kernel Revision 2.6.17.1) running on ARM9. In the module's "read()" function, I'm returning the number of bytes that were copied into the user buffer. I saw some module code samples online and in most cases the "read()" function is returning the number of bytes read.The very strange behavior I saw in my case was, if I use a variable to return the value from the module's "read()" function, the user application reading from the module always saw "0".For instance:

Code:
static int zlg7289_read(struct file *file, char *buf, size_t count, loff_t *ppos)
{

[code]....

View 1 Replies View Related

Software :: Read Binary File In C But Code Is Not Working Properly?

Aug 7, 2010

I am trying to read binary file in c but my code is not working properly. I am not getting the same output as that in file. you can view my code below.

int i=0;
void main()
{
FILE *fp;
int* buffer;

[Code].....

View 4 Replies View Related

Ubuntu Installation :: Mount Exited With Code 12 - Failed To Read Last Sector

Mar 20, 2011

I am a beginner in ubuntu and only recently did i install Ubuntu 10.10 using Wubi. I am dual booting along with Windows 7 64bit. Before I got to know of Wubi, I created a free 20GB partition for installing linux. But since it was of no use, I decided to extend another partition adding this 20GB space. The problem now is that I am getting the following error while trying to access the partition.

"Error mounting: mount exited with exit code 12: Failed to read last sector (605949951): Invalid argument
HINTS: Either the volume is a RAID/LDM but it wasn't setup yet,
or it was not setup correctly (e.g. by not using mdadm --build ...),
or a wrong device is tried to be mounted,
or the partition table is corrupt (partition is smaller than NTFS),
or the NTFS boot sector is corrupt (NTFS size is not valid).
Failed to mount '/dev/sda5': Invalid argument
The device '/dev/sda5' doesn't seem to have a valid NTFS.
Maybe the wrong device is used? Or the whole disk instead of a
partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?"

These are the results after running sudo fdisk -l /dev/sda:
"Disk /dev/sda: 640.1 GB, 640135028736 bytes
255 heads, 63 sectors/track, 77825 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x76c4009c

Device Boot Start End Blocks Id System
/dev/sda1 1 1 992+ 42 SFS
Partition 1 does not end on cylinder boundary.
/dev/sda2 * 1 13 102400 42 SFS
Partition 2 does not end on cylinder boundary.
/dev/sda3 13 6528 52326400 42 SFS
Partition 3 does not end on cylinder boundary.
/dev/sda4 6528 42717 290694144 42 SFS

View 6 Replies View Related

Fedora :: QEMU: Booting From ISO Image - Boot Failed: Could Not Read From CDROM (code 0004)

May 3, 2011

I'm running Fedora x86_64. I need to setup a virtual machine to do some work on ARM platform. Thus, I've installed QEMU.

Code:

qemu --version
QEMU emulator version 0.13.0 (qemu-kvm-0.13.0), Copyright (c) 2003-2008 Fabrice Bellard

Then, I have dowloaded an ISO image of Debian 6.0 armel.Following instructions on official wiki, I have first created an empty disk image,

Code:

qemu-img create -f qcow debian-armel.img 650M

then I have attempted to boot from ISO image;

Code:

qemu -m 512 -hda debian-armel.img -cdrom debian-6.0.1a-armel-CD-1.iso -boot d

Boot process hangs with the message:

Code:

Booting from cdrom...
639 medium detected
Boot failed: Could not read from CDROM (code 0004)
No bootable device

link refers to Fedora 12, but it seems still unresolved...

View 4 Replies View Related







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