Search Results

Search: Posts Made By: yhacks
Forum: Programming 05-28-2008
2,754
Posted By yhacks
got it
#include <stdio.h>

main()
{
int fd;
fpos_t pos;
printf("First Line\n");

fflush(stdout);
fgetpos(stdout, &pos);
fd = dup(fileno(stdout));
...
Forum: Programming 05-27-2008
2,754
Posted By yhacks
But sometimes I need to load a shared object and...
But sometimes I need to load a shared object and call the function.
In that case the function will be opened and prints messages (log messages) on the terminal.

Loading shared library using...
Forum: Programming 05-27-2008
2,754
Posted By yhacks
popen is only used to execute a shell command. ...
popen is only used to execute a shell command.
But how to capture through tee command which is built in C.
vmsplice or splice.

Thanks in advance
Forum: Programming 05-27-2008
2,754
Posted By yhacks
Hi Urgent
Hi

Im launching another applicaTION from my "C" program.
Is there any way to capture the application output only.

Example.

printf ("U have pressed 1\n");
system("ls -l");
printf (" U have...
Forum: Programming 05-26-2008
18,800
Posted By yhacks
Using gnome
Trying to capture keyboard and mouse events in gnome (ubuntu)
Forum: Programming 05-23-2008
1,929
Posted By yhacks
Handling variable inputs
Hi,

Is there any way to handle variable inputs.
If an application handles more than one input
how to print the input values.

Example :

./a.out 1 "hi" 3
./a.out 1
./a.out 1 3 4 "hello"
...
Forum: Programming 05-23-2008
2,580
Posted By yhacks
Using funcion in a shared library
Is there any way in C to access a function in C shared library.
I have used dlopen to access /load the c shared library but unable to
use the function in the shared object.

Thanks in advance :b:
Forum: Programming 05-23-2008
18,800
Posted By yhacks
Using LInux OS (ubuntu)
I'm trying to capture the mouse and keyboard events while doing operations.
Please help me out
Forum: Programming 05-21-2008
18,800
Posted By yhacks
How to get capture input events from keyboard and mouse
Hi,

Is there any way to capture/record the input events from keyboard, as well as from mouse using C.

Thanks in advance
114,666
Posted By yhacks
try this
echo $var | sed 's/\./_/g' -> will print the variable

x=`echo $var | sed 's/\./_/g'` will get the output into x variable.
2,797
Posted By yhacks
Any way to access shared object using shell
Hi,

I have created a shared object (abc.so) which has a function sum(int a, int b).
Is there any way to load the "abc.so" and use the sum function using shell script..
thanks in advance
11,013
Posted By yhacks
How to get the exit status
Hi all,

I'm running a program which return 1 upon success.
But when encounters problem shell return 's '1' .
How to differentiate between them the shell return value and script return value.
...
Forum: Linux 05-16-2008
4,786
Posted By yhacks
What happens when user logout?
Hi
When executing some commands, we need to re-login into the account.
What happens when logged out and login ?

Are there any scripts (.bashrc .... ) to be executed or to update system files....
1,520
Posted By yhacks
help on awk or sed
Hi i want to search and replace nth occurrence a particular string using awk or sed
4,564
Posted By yhacks
script to connect to com port
Hi is there any way to connect through com port to using shell script.
Thanks in advance.
12,667
Posted By yhacks
Tyr this .................
Hi use this

ls -vl print the following

-rw-r--r-- 1 yhacks yhacks 0 2008-03-14 14:26 2006-01-07
-rw-r--r-- 1 yhacks yhacks 0 2008-03-14 14:26 2006-01-08
-rw-r--r-- 1 yhacks yhacks 0...
11,315
Posted By yhacks
Output from executable
Want to print output from the exe to file and terminal at a time.
So, used `tee` command. But return status of tee is printed instead of
exe return value.
Can use pipestatus. pipestatus is...
3,141
Posted By yhacks
Are there any variables and arguments ????
What are $i and $j,
Are there any arguments passed while running the script
11,315
Posted By yhacks
Getting return value with logs
Please help me out
11,315
Posted By yhacks
$PIPESTATUS not printing any value
echo "Running program output"
myLine="./add 1 11"
`expr "$myLine"`| tee outputfile
echo "Pass / Fail : $PIPESTATUS"

Thanks for your reply.
$PIPESTATUS is not printing any value when it is...
11,315
Posted By yhacks
How to get return value from C program and logs to file
Hi, I have written scritp which prints output from the executable to standard output as well as in a file. Here "add" is an c executable which returns
some value based on inputs.

But if tee is...
Showing results 1 to 21 of 21

 
All times are GMT -4. The time now is 08:16 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy