Search Results

Search: Posts Made By: lamachejo
Forum: Programming 12-25-2011
13,194
Posted By lamachejo
Oh dear, now all has become clear, knowing this...
Oh dear, now all has become clear, knowing this makes it really easy :wall:

Thanks a lot
Forum: Programming 12-25-2011
13,194
Posted By lamachejo
Thanks! actually the program did nothing when...
Thanks! actually the program did nothing when executed :wall:




Yes, but what if I want to write in the pipe through the excel program? the program executed by excel, is also sharing the same...
Forum: Programming 12-24-2011
13,194
Posted By lamachejo
The data is sent as an argument to the Master...
The data is sent as an argument to the Master program. The data are two ints, one bigger than other (ex: 1000 and 2000). The master program will execl the slave program, the slave program has a code...
Forum: Programming 12-24-2011
13,194
Posted By lamachejo
[C] execl and pipes?
Hi, I have two programs, one is named "Master" and the other one "slave". What I want to do is , when I execute Master, inside slave will be called by excecl, do some calculations, and send those to...
Forum: Programming 12-12-2011
9,138
Posted By lamachejo
As always, I'm thankful for you answer ;)
As always, I'm thankful for you answer ;)
Forum: Programming 12-12-2011
9,138
Posted By lamachejo
[C] exec system call
Hi again ;) Now I want to make a program that will execute the programs with exec, asking the user if he wants the program to run in background or foreground.

scanf("%c",&caracter);
if...
Forum: Programming 12-09-2011
3,962
Posted By lamachejo
Thanks for the insight! I will look into it...
Thanks for the insight! I will look into it tomorrow because right now I don't havem much time ;)
Forum: Programming 12-09-2011
3,962
Posted By lamachejo
[C]Fork and waitpid
Hi folks, I am writing a simple program to understand how fork() and waitpid works, but it doesn't seem that is working like I wanted.


if(fork()==0){
//el hijo
pid1=getpid();
printf("\nSoy...
Forum: Programming 10-31-2011
2,631
Posted By lamachejo
They are 32 bits but adding them in 2 registers...
They are 32 bits but adding them in 2 registers so I can have a 64 bits number (with adc, in eax:edx).
Forum: Programming 10-30-2011
2,631
Posted By lamachejo
[ASM] Adding SIGNED numbers?
Hi guys, I want to add a list of SIGNED numbers... but I don't know how to tell the computer to ADD THEM as signed, let me explain further:

when adding 200 + (-100) , it becomes 100, but in asm...
Forum: Programming 06-10-2011
5,688
Posted By lamachejo
Thanks! Well it seems it actually works ...
Thanks! Well it seems it actually works

writing 5 random numbers

00000000 4d 50 2d 50 45 52 2d 42 20 0a 05 00 00 00 02 00 |MP-PER-B .......|
00000010 00 00 01 00 00 00 02 00 00 00 04 00...
Forum: Programming 06-10-2011
5,688
Posted By lamachejo
Is it any different on 64 bits OS?
Is it any different on 64 bits OS?
Forum: Programming 06-10-2011
5,688
Posted By lamachejo
Doing the hexdump -C shows letters and symbols,...
Doing the hexdump -C shows letters and symbols, (and the MP-PER-B at the first line)...

It's not supposed to do that, right? It should print numbers since I wrote (or at least that was my...
Forum: Programming 06-10-2011
5,688
Posted By lamachejo
writing binary file (C++)
Hi guys, I am writing a vector into a binary file (linux of course), but somehow there seems to be something wrong with this code, because the output file size in binary is BIGGER than doing it with...
Forum: Programming 05-25-2011
1,366
Posted By lamachejo
That won't even compile, it gives me this error...
That won't even compile, it gives me this error in that exact line:

In constructor `matriz::matriz(int, int)':
cannot convert `int*' to `int**' in assignment
Forum: Programming 05-25-2011
1,366
Posted By lamachejo
problems with pointers and internal representation.
I am trying to implement the representation in the attached file.
class matriz {
private:
int fil,col;
int **filaspointer;
int *buffer;
...
Forum: Programming 04-03-2011
1,476
Posted By lamachejo
Thanks a bunch, that was the problem. Now it...
Thanks a bunch, that was the problem. Now it works flawlessly.
Forum: Programming 04-02-2011
1,476
Posted By lamachejo
C++ last bit of an image
Hi guys, I've been trying to find out what's wrong with the code, g++ doesn't prompt any error but it doesn't do what I want it to do, and after looking at it over and over I can't find anything...
1,125
Posted By lamachejo
Knowing the user who is executing my script
Hi, is there any way? I thot of id but it doesnt work quite well :wall:
1,690
Posted By lamachejo
Problem with bash if
Hi, i am making a little script that when its invoked with p or f, it will do different things (p will ask the user to input an string and it will count its words , and f will ask the user a...
1,808
Posted By lamachejo
Wow, I sure am grateful for your help, thanks!...
Wow, I sure am grateful for your help, thanks! I'm gonna try it out and study how it works, thank you!
1,808
Posted By lamachejo
I want a script that kills the job, but sending...
I want a script that kills the job, but sending the command

Example

./script sleep # this would kill the sleep job (if there is one).
1,808
Posted By lamachejo
Script that "should work" it's not working.
Hi, this is my script:

#!/bin/bash
trabajo=$1
numero=`jobs | grep -n $trabajo | cut -d':' -f1`
echo $trabajo
echo $numero
kill %$numero
wait

For some reason,
numero=`jobs | grep -n...
2,341
Posted By lamachejo
Uhh...Just noticed, doesn't work with bash (my...
Uhh...Just noticed, doesn't work with bash (my bad, I forgot mentioning that I was working with bash).

It just stores '[f]oobar' in that variable and doesn't find anything that is running.
...
2,341
Posted By lamachejo
Script to see if a process is running or not
Hi, I'm trying to make a little script to see if a process is running or not, the problem is...it always says it's running.

It's probably fault of the script itself, because ps -ef lists the...
Showing results 1 to 25 of 27

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