Search Results

Search: Posts Made By: suryaemlinux
1,057
Posted By suryaemlinux
Parsing all the files in the directory and replacing them
Hi,
I would like to parse all the files (*.c and *.h) in the sub-directories and if *.c or *.h files are found I would like to append a string and place it in the same directory. How do I do that? ...
2,054
Posted By suryaemlinux
I got it. Is there a way to get the PIDs when I...
I got it. Is there a way to get the PIDs when I use the "system" to launch the process?
2,054
Posted By suryaemlinux
Capturing PIDs of same process at different instances
Hi,
I'm gonna launch a process from my 'C' code. I'm gonna launch it a few times. I would like to capture the PID of that process each time I launch. I have to copy the each PIDs into a 'C' variable...
60,535
Posted By suryaemlinux
Thanks a lot guys!!!
Thanks a lot guys!!!
60,535
Posted By suryaemlinux
I'm not sure whether I conveyed what I wanted....
I'm not sure whether I conveyed what I wanted. For example in C programming, you can always print the line # using the macro __LINE__. Is there anything similar in bash that I could use of?
...
60,535
Posted By suryaemlinux
Printing the line number in bash script
Hi,
I would like to know how do I print the line # in a script. My requirement is, I have a script which is about ~5000 lines long. If there are any errors happen I just exit. And I would like to...
Forum: Linux 02-03-2011
22,871
Posted By suryaemlinux
Hi, Thanks for your hint. I looked into my...
Hi,
Thanks for your hint. I looked into my inittab file. And I found that if power fail happens we're calling "shutdown -n now". It's indeed emergency shutdown not going thro' any levels.

My...
Forum: Linux 02-03-2011
22,871
Posted By suryaemlinux
Reboot/Shutdown messages
Hi,
I'm using 2.6.11 kernel on ARM 9. Below are the messages I get issuing different commands.

When I give "reboot" I get run level 6 initiated and get the following messages. I have nothing to...
Forum: IP Networking 02-01-2011
4,580
Posted By suryaemlinux
TFTP Server Timeout issue
Hi,
I'm running CentOS 5 as guest using VMware player. My host is Windows Xp. I'm running tftp server in CentOS. I have disabled firewall in both windows and CentOS. I use two different networks...
10,358
Posted By suryaemlinux
Capture makefile errors in shell script
Hi,
I have a bash script which calls a few "make". I would like to know whether the makefile failed with any errors. How do I do that in the script?

Thanks,
S
Forum: Red Hat 01-14-2011
3,696
Posted By suryaemlinux
Unable to type anything on "cu" serial terminal window
Hi,
I'm using CentOS 5.5. I connected serial terminal using "cu". The command I had given was "cu -l /dev/ttyUSB0 -s 115200". It connects I'm seeing the target boards boot-up messages and log in...
15,785
Posted By suryaemlinux
I'm using bash. I tried your code. but the var1...
I'm using bash. I tried your code. but the var1 reads var0=day instead of just day
15,785
Posted By suryaemlinux
Reading comma separated variable into other variables in shell script
Hi,
In shell script, I have a variable var = xyz, inn, day, night, calif ....n and I would like to read them in to var1 = xzy, var2 = inn, var3= day, var4 = night....var[n].
probably in a loop. I...
Forum: Ubuntu 11-21-2010
3,231
Posted By suryaemlinux
LTIB failure in Ubuntu 10.04
Hi,
I'm trying to run LTIB on my Ubuntu 10.04. It's failing when it's creating u-boot-mpclite5200b.It's shown below. Any help is really appreciated.


powerpc-603e-linux-gcc -M -g -O2 -fPIC...
Forum: Programming 02-10-2010
51,627
Posted By suryaemlinux
Adding a Static Library (libtimer.a) to the Makefile
Hi,
The following is my Makefile, I wanted to add a staic library named libtimer.a. I'm using the following Makefile. Please let me know how to add this static library:

Makefile:-

It produces...
Forum: Linux 01-07-2010
15,497
Posted By suryaemlinux
Thanks a lot, folks.
Thanks a lot, folks.
Forum: Linux 12-23-2009
15,497
Posted By suryaemlinux
Reading Daylight Saving Time in Linux using C/C++
Hi folks,
I would like to read the start date and end date of the Daylight Saving Time for the given timezone in the given year. What's the function in C/C++ to read the start of the Daylight Saving...
Showing results 1 to 17 of 17

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