Software :: Pty Handler Program ?
Dec 30, 2009
I'd like to propose the following program, which I might write if nothing like this already exists. It would be similar to the "script" program in that it will allocate a new pty/tty pair and start a new session. But unlike the "script" program, it will provide a means to have BOTH the normal terminal session going AND a script or input source to provide input. It could be used, for example, to pre-start programs inside the pty session, and at the end, let the controlling tty it was started in fully interact with it (something that can't happen if it was started with input piped from the script).
My design would allow running a control script right from the beginning, or at any later time. The control script can see output from the session, filter that output for the controlling tty to see, provide input, maybe even filter the controlling tty input, too. When the script ends, the session can remain for regular interaction. Also, an environment variable will be set in the session to allow programs inside the session to provide similar controls, such as feeding input. That environment variable might be a local port number to connect to, with an access key or encryption key, to provide input and/or control commands.
I have several uses for this. Many of those uses could be done using other tools, but not all the uses would hit the same tools. But by doing it all in a program like this, I see a great many of my uses all solved in a single project, even if it isn't the most elegant (but I see solving many problems with one solution as being its own kind of elegant).
View 1 Replies
ADVERTISEMENT
Feb 23, 2010
How can I set the handler without panel?
like when it's set to dso without panel
and next my qus is :
where is mod_cgi.so in whm panel ? i want edit this file but i can not found this file
View 1 Replies
View Related
May 22, 2010
I am looking for a good audio session handler.
On ubuntu I have seen Ladish but it is a preview release.
Is there a good audio session handler for openSUSE.
http://ladish.org/wiki/demovideo
View 4 Replies
View Related
Oct 11, 2010
I recently installed openSUSE 11.3 (4 times, I think, which gives me always a new name for the "server" and in my terminal screen I continuously get this error: Message from syslcgd@linux-i4cz at Oct 12 06:21:57 ... kernel:[2866.05E384] do_IRQ: 0.91 No irq handler for vector (irq -1) the number after kernel: varies I then hit a few time son the [I]enter[I] key and then I get my linux prompt.
View 2 Replies
View Related
Dec 2, 2010
Assume: 1) Multi-cpu environment 2) Process that gets interrupted, is the same process that executes the interrupt handler, so I guess technically nothing gets interrupted except what the process was doing before, but it is still executing as it is executing the handler. 3) There is no top or bottom half, when an interrupt takes place the handler is invoked, executes, then return from interrupt, simple as that.
Why would sleeping the handler (puts in sleep queue, context switch to next runnable process) be a bad idea?
View 1 Replies
View Related
Apr 17, 2010
Ubunto is new to me when I try to play a movie I get the message, "no URI handler implemented for dvd".
View 1 Replies
View Related
Sep 29, 2010
I want to define a simple error handler for a script. Image a script that does a few commands:
Code:
ls .
cd ..
touch ...
whatever, it doesn't matter. I want to define one error handler for the script, so if any of the steps error than the script is terminated and the error handler is run. I see the -e option to quit on errors, but I want a GOTO on errors.
View 1 Replies
View Related
Nov 1, 2010
Is it possible to connect a signal handler to a variable?So when the variable changes the signal handler is called.I have a vector containing strings which i want to parse when there are one or more available strings in the vector
View 3 Replies
View Related
Oct 29, 2010
What is Fedora's best document organizer software? All the best, Novatian.
View 2 Replies
View Related
Jan 14, 2015
Basically I'm intending to write serial RX signal handler.Application receives defined packages of data over serial which contains header and payload. Handler should analyse incoming stream and upon detection of header (header is 6B in length) switches to receive payload of length defined in header, then after receiving full message packs it and sends to application for handling.Problem I'm facing is that at random moments in signal I receive errors that "Resource temporarily unavailable" while reading from ttyOx device and I see that sometimes I miss incoming data.Also is it possible that if while I'm handling signal one more signal arrives and it is started to be handled parallel? If it is, what are the ways to prevent it? So I would be sure that no more signals will fire on same peripheral until I will finish handling what I have on my hands now.
Serial open and init:
Code: Select allint open_port(int port_nr) {
int fd; /* File descriptor for the port */
switch (port_nr) {
case 1:
fd = open("/dev/ttyO1", O_RDWR | O_NOCTTY | O_NDELAY);
break;
[code]....
View 5 Replies
View Related
May 10, 2010
I have written a Linux kernel module (in Linux 2.4, Red Hat 9) which does the followings: It takes srcIP, sourceport, destIP, destport and loadvalue as command line arguments. If configured load value is greater than 1, it creates different channels (i.e. No of UDP channels created equals to configured load value), assign different source port and destination port to different channels and send UDP datagram in different channels. Say for example the configured parameters are as follows srcIP=10.17.17.43 destIP= 10.17.17.44 sourceport=10000 destport= 20000 loadvalue=2.
Then it creates two UDP different channels and transmits UDP packets (in every 20 milliseconds) to destination IP address (i.e., 10.17.17.44) with source port 10000, destination port 20000 in one channel and source port 10002, destination port 20000 in another channel. When I configure to pass ?loadvalue=500? and run the module, I get the below kernel panic message in system log file (i.e., var/log/messages) 0>Kernel panic: Aiee, killing interrupt handler! In interrupt handler - not syncing. Running the same linux kernel module ,in 1000 loadvalue, I get this message, eth0: Out-of-sync dirty pointer, 49937 vs. 49954 in text console. I am unable to catch the root cause of these problems and how will I solve these?
View 1 Replies
View Related
Oct 20, 2010
I would really like to install 2 or 3 PHP handler modules (suEXEC, FastCGI, etc) on a single server and assign which module should be used per virtual host or domain or whatever.
Is this possible?!
Could I get details?
View 1 Replies
View Related
Dec 24, 2010
I don't have wine installed. But I use teamviewer [URL] to remote support my friends. Teamviewer provide an "linux version" using wine wrapper. Every time I run it, some mime types such as .jpg, .wmv, .txt, .ini, v.v... was set to be handle by a "A Wine application". So, nothing happen when I open those file, I have to reset their handler to proper linux application.
1. How can I completely remove those "A wine application" handler? Is there a tool, or a settings applet in gnome that allow me to do that. Currently, I have to find those files in nautilus, right click and change the open with settings, that's frustrated.
2. Can I lock mime type handling settings from being changed by some application? Or even lock it from any changed at all? I don't mind remove the write permission from some settings file, I won't likely to change my current mime type handling settings in near future.
View 4 Replies
View Related
Apr 26, 2011
Is it possible to handle multiple signals in just one handler? I only know singal() catches one signal at a time
View 2 Replies
View Related
Feb 15, 2010
locking mutex (phtread_t type) in a signal handler function (installed by function signal()) for Linux. It seems that if the mutex has been previously locked by another thread outside the signal handler function and then the signal handler function tries to lock it, the whole process hangs.
View 5 Replies
View Related
Jan 20, 2010
I'm new to Unix and every signal handler algorithm I've seen is more or less a copy of what I'm trying to do.[URL] designing a signal handler with sigwait in UNIX?
View 1 Replies
View Related
Aug 23, 2010
Odd that no posts come up in the search for "sox" or "specifically sox mp3"
How to get it up and going?
Which yum libraries need to be installed to get sox to recognize mp3s,
example: yum -y install force-mp3-to-start-working
its producing this error message: sox formats: no handler for file extension `mp3'
View 10 Replies
View Related
Jan 19, 2010
I'm trying to create a signal handler thread to handle SIGALRM signals. The main thread calls the following function before creating any other threads
Code:
pthread_t Timer::Init(long _clock_interval_musec)
{
// Set interval.
clock_interval = _clock_interval_musec;
// This is called while in a single threaded environment.
[code]....
clock_interval is 50.
Is the timer not firing? Did I not set my interval correctly? Did I not proper block the signals ensuring the that the default handler would not take care of them?
View 7 Replies
View Related
Mar 3, 2011
I have just installed the play command in my terminal and when I try to play an mp3 i get the error " no handler for file extension 'mp3' ".Am I required to create a default action that happens when an mp3 file is called, like opening and audio player, or do I just need to install some specific drivers?
View 5 Replies
View Related
Mar 2, 2011
I am using Debian linux. I have 100 timers running. If a timer expired which will generate a signal and it was mapped to a same function handler. All the timers are mapped to one function handler. The problem is if the timer expires one at a time, the function handler called at a time. But if the 2 timers expires at a time, the function handler is called one time only instead 2 times. Is it possible to invoke the function handler as many times based on timer expirary happens simultaneoulsy?
View 14 Replies
View Related
Jan 16, 2010
I have a Pinnacle PCTV HD pro usb stick, and having unsuccessfully tried MythTV and every other DVB player in the repository, I was successful in getting Totem/Movie Player to load the channels (w_scan -ft -c US -k seemed to work and saved in the gstreamer folder...I think, lol!), but it won't let me play any of the channels but gives me a "No URI handler for DVB" message! What is a URI handler, and how do I resolve this?
View 2 Replies
View Related
May 18, 2010
I am doing some Linux kernel programming for my research project. I need to record the timestamp (by using cpuid and rdtsc) when an interrupt handler (top half) is first invoked. Due to the time critical nature of the problem itself, I have to do the timestamping inside the interrupt handler itself (the first operation when the handler is called). However, I understand that tasks that are not so time critical should be deferred to a tasklet function (bottom half) for processing because other interrupts are disabled in a (top-half) interrupt handler. I am currently out of idea on how I can pass the timestamp information that I have obtained in the interrupt handler to the corresponding tasklet function.
View 2 Replies
View Related
Jan 28, 2010
my computer doesn't get the internet, so I've tried to download what earlier threads write as the solution on another computer, but the other computer isn't linux, and it says that it doesn't recognize the file extension. Is there any way to download the "ubuntu-restricted-extras" thingy without it immediately trying to install?
(I have ubuntu 9.1, on a thinkpad t22(i think))
View 1 Replies
View Related
Mar 21, 2009
I receive the following kernel trace message during the boot process after a fresh install of CentOS 5.2 x86_64. The trace occurs during the initialization of HALD in the boot process. From what I can tell things seem to be functioning properly, but I still would like to get rid of the noise for peace of mind.
Below is the pertinent information to date.
/var/log/messages:
With regards to hardware and operating system; all blades are identical with the exception of the amount of physical memory. The installation is done via kickstart against a frozen CentOS 5.2 x86_64 repository.
Server:Dell PowerEdge M600
Chassis:Dell PowerEdge M1000e
Processors:Dual Intel(R) Xeon(R) CPU E5450 @ 3.00GHz
Memory:16G/32G
OS:CentOS release 5.2 (Final)
Kernel:Linux dell-3-2-1 2.6.18-92.1.22.el5 #1 SMP Tue Dec 16 11:57:43 EST 2008 x86_64 x86_64 x86_64 GNU/Linux
Some googling has revealed or suggested that it may be related to a keyboard ps/2 interrupt. I have tried booting with noapic and received the same results.
Below are the contents of the interrupt table after each boot.
/proc/interrupts booting apic:
My next step is to install Redhat 5.3 x86_64 on the next blade I free up to see if I receive the same error.
View 9 Replies
View Related
Apr 12, 2010
I'm sure this is a simple problem, however I am a newly reformed microsoft user (and it feels great).
When I try to watch wmv streams I get the error: No URI handler implemented for "mmsh".
View 2 Replies
View Related
Feb 15, 2011
I will have to code this. However I am lacking of time since I have too much to do. make a short code bash/dash to prompt the country with Zenity, then, get the PLS or m3u url and prompt with another zenity which radio to play. http://www.listenlive.eu/index.html
My code to get url's radio country.htm is:
Code:
View 2 Replies
View Related
Feb 23, 2011
I was wondering whether there is an inbuilt logging system in UNIX?
I ran and installation and the program opened up automatically but I can't find the program executable.
If I could find a log then I could locate this file.
View 9 Replies
View Related
Apr 15, 2011
I have problems to get it work. i have tried to use pm-utils, but it does nothing.
What is need is to kill application, when pc is going into suspend to ram and run that application again on wake. It's a graphical application.
View 1 Replies
View Related
May 7, 2010
I am new to linux and am trying out script writing. I am using shell. How can I make a script to open a program then operate within that program?
View 5 Replies
View Related
Dec 14, 2009
Is there anything like burning rom from nero or roxio cd/dvd copier. Do you know of any dvd copying program? like without making the image and then burning with just one process just copy the disc sorta program like roxio dvd copier? I wanted to make copies of movies I made a dvd of but aside from image burn which is a hassle to make the image first. is there something for burning on the fly or dvd/cd copying? infrarecorder and cdburnerxp do not work for me at all.
View 3 Replies
View Related