Programming :: Send Epson ESC/P Sequences Through Terminal?
Mar 18, 2011
I want to send Epson ESC sequences to control the printer from terminal.
I figured out if I send
Quote:
echo $FF>/dev/lp0
that is equal to sending 'FF' control sequence. But I have problem when I need to send sequences like,
1. ESC 0 . I sent
Quote:
echo $ESC $0>/dev/lp0
,
Quote:
echo $"ESC 0">/dev/lp0
. They do not work as expected.
2. ESC HT 5 4 (To control Horizontal Tabbing)
How can it be done in bash?
View 4 Replies
ADVERTISEMENT
Apr 27, 2011
I have to write a code that converts a sequence of 1's and 0's(block) into their equivalent hexa number and copying to another array(byte). but this sequence is not always of length 8 and you are required to send strlen(sequence)%8 bits back into the string. So i've written down this code and it works well with the sample input but fails in the real program.
Code:
int Convert_encode( char * block,unsigned char * byte)
{
int len,iter,i,j,k,sum;
char * temp=(char *)malloc(4*sizeof(char));
len=strlen(block)/8;
[code]....
View 7 Replies
View Related
May 17, 2011
renaming my directory My current path is /sequences/proteins/sequences/original_sequences and i would like to drop the second directory of "sequences" and would like it as /sequences/proteins/original_sequences
View 4 Replies
View Related
Mar 17, 2010
After downloading and installing iscan and run it i see this message:
Could not send command to scanner. Check scanner's status.
After command sane-find-scanner:
And this message is result of scanimage command:
No scanners were identified. If you were expecting something different, check that the scanner is plugged in, turned on and detected by the sane-find-scanner tool (if appropriate). Please read the documentation which came with this software (README, FAQ, manpages).
View 4 Replies
View Related
Jan 23, 2010
I just switched to openSUSE. I was using Debian based linux before.
I'm having getting my scanner to work, It is an epson cx4800.
I know that it works with sane because I was using it before, on my other systems it was just a matter of changing epson.conf :
Code:
I am using xsane, and it does not recognize the scanner still, though in the past doing this worked on other distributions of Linux....is there something else I can do? I tried running xsane as root and it still didn't recognize it.
View 1 Replies
View Related
Sep 10, 2010
I open up 2 xterms on my desktop, A(/dev/pts/0) and B(/dev/pts/1).
I can write from A to B using redirection e.g. echo "test" > /dev/pts/1
How do I run a command from A on B? e.g. "clear"
Ideally I should be able to do this from a script.
View 7 Replies
View Related
Mar 21, 2011
I am building a minimal 6.2.2 linux kernel with slackware on an AMD athlon +1700 single core box.
In the lilo.conf file, there was originally only one entry, which was created by the slackware cd install.
Now, my questions are:
1.Does a person edit the lilo.conf files before or after they rerun lilo?
2. If that person edits the lilo.conf files before they rerun lilo, does the sequence of the entries in the lilo.conf files affect the manner in which lilo treats the new and old kernels? (e.g. If I put the new minimal kernel build as the first entry, will I get an error message saying that the kernel sizes do not match or that the iso image is too large, or some other strange error message?)
3. Are there any other lilo related problems, options, or tweaks that you think are pretty cool and that I might like to hear about?
4. Would I be better off using GRUB?(I don't like GRUB, but I'm throwing this one in here just for completeness.)
View 6 Replies
View Related
Mar 24, 2010
how to send message in terminal
View 5 Replies
View Related
May 14, 2010
how to send a message alert from the terminal?
View 1 Replies
View Related
Nov 30, 2010
I am using pine as email client for a while, and I noticed that if I got a new email, all terminal opened will show a notification if you type any command.
I just wondering is there any tool/command I can customize my own notification like this and work combine with crontab?
I search google for a little bit, no useful clue so far?
View 3 Replies
View Related
Mar 20, 2011
I typically use rm to delete files, but they don't end up in my trash folder in case I want to recover them. How do I make that happen and how do I access my trash folder via terminal? Doing me best to work from terminal rather than GUI and this one has me stumped. I am using Mint Julia.
View 2 Replies
View Related
Sep 10, 2010
I open up 2 xterms on my desktop, A(/dev/pts/0) and B(/dev/pts/1).I can write from A to B using redirection e.g. echo "test" > /dev/pts/1How do I run a command from A on B? e.g. "clear"Basically I'm putting the 2 terminals side by side, and using terminal B to display the contents of the current working directory, by running the following in A:export PROMPT_COMMAND="ls -a > /dev/pts/1"but this fills up the screen pretty fast. I was actually looking for a way to clear up the second terminal.
View 6 Replies
View Related
Dec 6, 2010
How to send message via terminal in windows or linux?
View 4 Replies
View Related
Mar 22, 2011
I have two users; user1 and user2. I have a bash script run by user1, that needs to run a command on a screen terminal started by user2.
View 1 Replies
View Related
Apr 26, 2010
i am trying to send message through terminal with smbclient, i have searched the net and found this command
Code:
smbclient -M <hostname>
now i am confused on hostname, which i open the network folder i see to icons
1. is my laptop
2. Windows Network
when i enter Windows Network folder i see 2 more icons
1.MSHOME
2.WORKGROUP
and when i enter MSHOME folder i see one icon 1. MIRZA-SAAD this is the computer which has xp in it i want to send message to it with smbclient now how when i write this command i see this error
Code:
amir@amir-laptop:~$ smbclient -M //MSHOME/MIRZA-SAAD/
Connection to //MSHOME/MIRZA-SAAD/ failed. Error NT_STATUS_BAD_NETWORK_NAME
View 7 Replies
View Related
Sep 27, 2009
I have downloaded both versions of Fedora 11 (Gnome and KDE) to iso files on my hard disk - in Windows XP. I then tried the verification procedure advised in [URL]... section 3.1. I have successfully installed and run hashcalc, with the SHA1 option, and got the following results:
- for the Gnome version : 795b52b3c7b16eba6f2cae055ec894d8648d8095
- for the KDE version : 38ef6c97e29803add28d40add05aa025b6f4c92b.
But I can't find any SHA1SUM files to give me the correct character sequences against which to compare the said results.
View 7 Replies
View Related
Mar 28, 2010
In my continuing quest to live without X most of the time, I am trying to set up fetchmail and Mutt to get and send mail. I only want to be able to send and receive text based mail, and so far I am running into trouble with what I think should be pretty simple. For receiving my mail, I believe I only need to create a .fetchmailrc file in my home directory with the entry:
Code: poll [URL] protocol pop3 username "myusername" password "mypassword" But I get:
2 messages for myusername at mail.myISP.com (7965 octets).
fetchmail: connection to localhost:smtp [127.0.0.1/25] failed: Connection refused.
fetchmail: SMTP connect to localhost failed
fetchmail: SMTP transaction error while fetching from wetumpka@mail.btopenworld.com and delivering to SMTP host localhost
reading message myusername@pop-smtp.ISP.mail.fy5.b.yahoo.com:1 of 2 (2734 octets)fetchmail: Query status=10 (SMTP)
It appears to me that it is finding mail but does not know where to deliver it and is refused a connection to my machine. Also, I cannot figure out how to set up my SMTP for my ISP in Mutt to send mail. Can someone point me to a simple tutuorial on how to do these things. I really only want to do what you would with Thunderbird, but from the command line.
View 14 Replies
View Related
Jul 23, 2010
I am currently doing a research on video transmission over wireless LAN. I tend to transmit my offline file (xx.svc) from server to client.It may sound stupid (since I have a very little knowledge about c programming and raw socket), but my biggest challenges is that when I want to write the file to the buffer, how actually to define/include the file at the programming coding? where I need to locate the file? Is it at the same folder with my c programming, or somewhere in the linuxinclude folder?
Can anyone just give a simple example on how to include a file and write it into a buffer before send it through raw socket.
View 14 Replies
View Related
Jun 22, 2009
this is my client and server. I can receive text file. but I can't send other type of file like PDF,Docx,Odt
View 11 Replies
View Related
Sep 16, 2010
Is there a script I can use to send a command VIA terminal to wipe an entire machine of data? If for example there is an intrusion valuable data can be at risk, it would need to be erased.
View 14 Replies
View Related
Jan 24, 2011
Has anyone had an issue with gdb not being able to send a UDP msg across a socket?
I have ComponentA sending a msg to ComponentB utilizing gdb. ComponentB gets the msg. ComponentB sends a msg to ComponentC. ComponentC does stuff to the msg and sends a msg back to ComponentB using gdb.
ComponentB never seems to receive the 2nd message.
If I don't use gdb the messages Tx and Rx without an issue.
I'm flying blind without gdb to figure out a different bug.
View 3 Replies
View Related
Aug 9, 2010
I'm trying to use expect to telnet to web server and send HTTP command like POST, GET, etc.
Here's my code...
But this gives an error
couldn't read file "/cgi-bin/authgw-cgi": no such file or directory
I think this is because of /
How to send / in expect?
View 3 Replies
View Related
Jan 20, 2010
Can I use send() function to send UDP datagram through a socket instead of calling the sendTo()?
View 2 Replies
View Related
May 7, 2010
have a file (called it A) contains;
hostname 192.168.23.65
hostname 10.18.13.253
hostname 10.18.16.253
hostname 177.23.56.58
how can i write a script to get only ip addresses & send it to 3 files with the following info. only:
file1:
192.168.0.0
file2:
10.18.0.0
file3:
177.23.0.0
by creating the 3 files then i will be able to set up subnetmask, gw,....etc.
View 2 Replies
View Related
Mar 7, 2011
Been trying all sorts of different things to implement a non-blocking send on a TCP server socket.As I kill the client, the server keeps blocking on the send no matter what. Am I missing something? Any other way to do that without involving any additional thread?
View 4 Replies
View Related
Feb 1, 2011
Can someone help me with this problem,trying to send a packet,using tcp/ip,the packet should look like this:
Code:
field 1: SOCKS protocol version, 1 byte (0x05 for this version)
field 2: status, 1 byte:
0x00 = request granted
0x01 = general failure
0x02 = connection not allowed by ruleset
0x03 = network unreachable
0x04 = host unreachable
0x05 = connection refused by destination host
0x06 = TTL expired
0x07 = command not supported / protocol error
0x08 = address type not supported
field 3: reserved, must be 0x00
field 4: address type, 1 byte:
0x01 = IPv4 address
0x03 = Domain name
0x04 = IPv6 address
field 5: destination address of
4 bytes for IPv4 address
1 byte of name length followed by the name for Domain name
16 bytes for IPv6 address
field 6: network byte order port number, 2 bytes
and this is my code:
Code:
int domainLen = strlen(domain);
char reply[domainLen + 7];
reply[0] = 5; // version
reply[1] = 0; // succed
reply[2] = 0; // reserved
reply[3] = 3; // its a domain
reply[4] = domainLen;; // lenght of domain
for(int j = 0; j < domainLen; ++j)
{
reply[j + 5] = domain[j];
}
reply[5 + domainLen] = 80; // port
reply[20] = '�';
Send(reply, sizeof(reply));
domain is "www.google.com". Am I doing it right ? I dont know much about bits.
View 6 Replies
View Related
May 24, 2010
I want to send a message from IP to Another IP through command prompt. how can i do this.s
View 3 Replies
View Related
Jan 24, 2010
How I send clipboard to festival or what is wrong here? #!/bin/bash
text='xclip -selection clipboard -o'
echo '(voice_nitech_us_awb_arctic_hts) (SayText "$text")' | festival
Says only "dollar text" to me. Just this works, but I want other script with different voice: #!/bin/bash
xclip -selection clipboard -o | festival --tts Voice changed here: echo '(voice_nitech_us_awb_arctic_hts) (SayText "say this please")' | festival
View 3 Replies
View Related
Mar 11, 2011
How can I send and receive packets using libpcap, reply as early as possible.
View 1 Replies
View Related
Oct 20, 2009
I am not a profession programmer. I have to write a C code which send some command to attach display using C program. Can any one please help me in this regard.
View 3 Replies
View Related