Re: [Ilugc] MySql data vanishes when tomcat is restarted

2012-07-28 Thread Raju s
On Fri, Jul 27, 2012 at 9:39 PM, Balasubramaniam Natarajan 
bala150...@gmail.com wrote:

 On Fri, Jul 27, 2012 at 9:33 PM, Raju s raju...@gmail.com wrote:

 
  We don't use transaction /rollback.
  The default is commit
  Tomcat or MySql log we could not find any error
 
 
 Are there any cronjob which is running ?

 Type w at the command prompt to see how many people are logged on to the
 system.

 --
 Regards,
 Balasubramaniam Natarajan


No cronjobs are running either in user or root
w command gives 4 people are logged in
1 root
3 staff

Thanks
Raju
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


[Ilugc] Communication between fork() ed processes

2012-07-28 Thread Girish Venkatachalam
How to communicate between two processes after you fork()?

IPC mechanisms exist to communicate between related and unrelated processes.

Common methods are simple file I/O or even signals which just trigger.

Perhaps you can trigger a file read after you write to it with a signal.

But I don't do such things. I don't send signals between processes.

Other methods are shared memory and UNIX domain sockets.

I use both.

Shared memory is bit boring. UNIX domain sockets can easily be welded
into the poll(2)
 system call that I normally use anyway.

So I ended up using that instead.

The other common method is using pipe(2).

I have used pipe but not much.

It is unidirectional. Sometimes that is sufficient.

And pipe can work with fork() processes. Only.

UNIX domain sockets are cool since they are very generic and the
semantics for communicating
 across the Internet and UNIX domain sockets are exactly identical.

And you can even communicate with unrelated daemons that way.

In fact I have had to do quite a bit of advanced operations
particularly using web CGI.

They all use UNIX domain sockets.

I find the data transfer, EOF tracking, size that can be transferred,
bidirectional facility, speed
everything very satisfactory.

I found some easy samples for you to try when I Googled. You could
also do what I did. ;)

Socket communications are a very nice topic to learn.

-Girish

-- 
Gayatri Hitech
http://gayatri-hitech.com
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


[Ilugc] how to multitask

2012-07-28 Thread kenneth gonsalves
hi

an open source hacker at the olympics:

http://www.google-melange.com/gsoc/project/google/gsoc2012/tpbarron/16001
http://www.nytimes.com/2012/07/01/sports/olympics/racewalkers-compete-outside-the-spotlight.html
-- 
regards
Kenneth Gonsalves

___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] MySql data vanishes when tomcat is restarted

2012-07-28 Thread Balasubramaniam Natarajan
On Sat, Jul 28, 2012 at 12:26 PM, Raju s raju...@gmail.com wrote:

 On Fri, Jul 27, 2012 at 9:39 PM, Balasubramaniam Natarajan 
 bala150...@gmail.com wrote:


 No cronjobs are running either in user or root
 w command gives 4 people are logged in
 1 root
 3 staff

 Are these four people authorized to be on the system ?

Try to increase the verbosity of the mysql server logging and try to
restart apache and look at the logs may be you can get a clue.

-- 
Regards,
Balasubramaniam Natarajan
www.etutorshop.com/moodle/
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] MySql data vanishes when tomcat is restarted

2012-07-28 Thread Raju s
On Sat, Jul 28, 2012 at 5:24 PM, Balasubramaniam Natarajan 
bala150...@gmail.com wrote:

 On Sat, Jul 28, 2012 at 12:26 PM, Raju s raju...@gmail.com wrote:

  On Fri, Jul 27, 2012 at 9:39 PM, Balasubramaniam Natarajan 
  bala150...@gmail.com wrote:
 
 
  No cronjobs are running either in user or root
  w command gives 4 people are logged in
  1 root
  3 staff
 
  Are these four people authorized to be on the system ?

 Try to increase the verbosity of the mysql server logging and try to
 restart apache and look at the logs may be you can get a clue.

 --
 Regards,
 Balasubramaniam Natarajan

Yes all these four people are authorized.
Further to our search, this happens only 2 or more people entering the data
if only one person is doing the data entry, data is not lost when tomcat is
restarted.

Thanks
Raju
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] [ILGUC] [HELP] Extraction of Data and Plotting

2012-07-28 Thread Narendiran
Request you data aquisition team to provide you the data in plain text
format or some other standard format. If they can provide that then GNU
Plot can do the rest. Most programs will have an option to export data into
other formats.

On Fri, Jul 27, 2012 at 11:32 PM, ARUN PALANIAPPAN 
arunpalaniappan@gmail.com wrote:

 2012/7/27 Shrinivasan T tshriniva...@gmail.com

 Strictly speaking, I never use DAS.. !!The data is being acquired by an
 Electronics team. I just get the acquired data for analysis.
 Hence, I am unaware about the DAS. I am not sure if it supports Linux

 I have seen them acquire the data using DOS or windows (Depending on
 application)

 --Trimmed--

 --
 Regards,
 ARUN P
 ___
 ILUGC Mailing List:
 http://www.ae.iitm.ac.in/mailman/listinfo/ilugc




-- 
Sincerely,

A. Narendiran
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] [ILGUC] [HELP] Extraction of Data and Plotting

2012-07-28 Thread ARUN PALANIAPPAN
2012/7/28 Narendiran a.narendi...@gmail.com

 Request you data aquisition team to provide you the data in plain text
 format or some other standard format. If they can provide that then GNU
 Plot can do the rest. Most programs will have an option to export data into
 other formats.

 Thank you...

TRIMMED


--
 Sincerely,

 A. Narendiran
 ___
 ILUGC Mailing List:
 http://www.ae.iitm.ac.in/mailman/listinfo/ilugc




-- 
Regards,
ARUN P



A Tailor’s mistake is a Fashion But, An Engineer’s mistake is a Disaster.

Preserve the earth; Else we will perish
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


[Ilugc] Ubuntu - alfresco query

2012-07-28 Thread Rajagopal Swaminathan
Greetings,

I installed alfresco on ubuntu precise yesternight (the bitnami
stuff). I was able to login and all that.

Today, when i tried after a reboot the http://127.0.0.1:8080/share, no reply.

I am guess that tomcat is not running.

I am not uncomfortable twisting a centos box's ear using chkconfig and all that.

But I am all thumbs when it comes to deb.

Any pointers? (of course a silly question from a noob)

-- 
Regards,

Rajagopal
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] Ubuntu - alfresco query

2012-07-28 Thread Balasubramaniam Natarajan
On Sat, Jul 28, 2012 at 8:36 PM, Rajagopal Swaminathan 
raju.rajs...@gmail.com wrote:

 Greetings,

 I installed alfresco on ubuntu precise yesternight (the bitnami
 stuff). I was able to login and all that.

 Today, when i tried after a reboot the http://127.0.0.1:8080/share, no
 reply.

 I am guess that tomcat is not running.

 I am not uncomfortable twisting a centos box's ear using chkconfig and all
 that.


#chkconfig list all | grep -i tomcat

This command should show you all the runlevels on which Tomcat would be
running on.  However you network should be up before that.


-- 
Regards,
Balasubramaniam Natarajan
www.etutorshop.com/moodle/
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] Ubuntu - alfresco query

2012-07-28 Thread Rajagopal Swaminathan
Greetings,

On Sat, Jul 28, 2012 at 9:25 PM, Balasubramaniam Natarajan
bala150...@gmail.com wrote:
 #chkconfig list all | grep -i tomcat

 This command should show you all the runlevels on which Tomcat would be
 running on.  However you network should be up before that.


Thanks!

It did not strike me at that point of time. I didn't know
chkconfig/service etc. existed for deb. This sudo prefix business is
distracting me like crazy. I am more comfortable su - way.

creature of habit, I guess.


-- 
Regards,

Rajagopal
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] Ubuntu - alfresco query

2012-07-28 Thread Rajagopal Swaminathan
Greetings,

On Sat, Jul 28, 2012 at 8:53 PM, Mehul Ved mehul.n@gmail.com wrote:


 Good old sudo /etc/init.d/tomcat start will definitely work, for one time.
 to start the service at boot time\,
 sudo  update-rc.d tomcat defaults
 more info here
 http://www.debuntu.org/how-to-manage-services-with-update-rc.d

 and if you prefer the upstart way then see
 http://upstart.ubuntu.com/getting-started.html


I did think of /etc/init.d and refrained for I wanted a persistant.

Will checkout the upstart. looks like a new beast to me.

-- 
Regards,

Rajagopal
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


[Ilugc] os customization

2012-07-28 Thread Dinesh Infotech
Hi all,

I am trying to customize ubuntu 11.04 and I customized it. But I don't know
how to change the os name.
for example I am in need to change the name *ubuntu 11.04* as *custubuntu
11.04.01*.
if possible please guide me.
Thanks in advance.

-- 
With regards,
Dinesh Infotech
https://dineshbeginner.wordpress.com/
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] os customization

2012-07-28 Thread MOHAMED ILYAS
Don`t hesitate to ask anything about linux here.

I think it should be grub.cfg file otherwise check the *grub* file
path in Ubuntu 11

if it grub.cfg then follow this...

*sudo gedit /boot/grub/grub.cfg*

or

*sudo vi /boot/grub/grub.cfg*


On Sat, Jul 28, 2012 at 8:04 PM, Dinesh Infotech dinesh@gmail.comwrote:

 hi,
 Thanks for your reply and I followed the 2nd method, but it does not work.
 so if I follow 1st method can you please specify the line where I need to
 change in the file grub.cfg.
 sorry to ask this actually I'm beginner of linux.




-- 
Thanks  Regards
L.Mohamed ilyas
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc