Shell script from java

Hi , I am trying to get the mail quota of mail users from mail server in Linux.How can i execute a shell script at my mail server from another machine. I want to pass the username to script how its possible.?ORgive me a solution to get the mail quota of users
[294 byte] By [sri_haria] at [2007-10-3 7:45:48]
# 1
Runtime.getRuntime.exeic("/whatever/path/mailquota-or-whatever -u user"); // or something like that http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html
jverda at 2007-7-15 2:47:12 > top of Java-index,Java Essentials,Java Programming...
# 2
My java pgm is in another s/m so how can i run a command at the mail server from here...
sri_haria at 2007-7-15 2:47:12 > top of Java-index,Java Essentials,Java Programming...
# 3
"s/m"?
paulcwa at 2007-7-15 2:47:12 > top of Java-index,Java Essentials,Java Programming...
# 4
ie, i neet to get the mail quota from mail server in linux from a client system. how can i invoke a command at the mail server from a client system.
sri_haria at 2007-7-15 2:47:12 > top of Java-index,Java Essentials,Java Programming...
# 5

> ie, i neet to get the mail quota from mail server in

> linux from a client system. how can i invoke a

> command at the mail server from a client system.

This doesn't clarify anything.

What do you mean "invoke a command at the mail server"?

You could use a socket connection and the POP protocol. The javamail API could help with that.

You could Runtime.exec rsh or telnet and execute the command in a shell on the remote system.

Hard to say more without more details from you.

jverda at 2007-7-15 2:47:12 > top of Java-index,Java Essentials,Java Programming...
# 6

i am using the mail server in linux.

my application is running with java/jsp and using java Mail API (Application server is in windows).

I need to get the mail quota of each user. how its possible. ?

How can i use Runtime.exec(/home/.. mailquota - user) since the application server is windows and mailserver is linux..

plz find me a solution

sri_haria at 2007-7-15 2:47:12 > top of Java-index,Java Essentials,Java Programming...
# 7
Runtime.exec will execute on the machine it is running. You need some server process on the other box to talk to. Is there one? What protocol does it speak?
BIJ001a at 2007-7-15 2:47:12 > top of Java-index,Java Essentials,Java Programming...
# 8
When you're just working from the command line, not using Java or JSP at all, how would you check the mail quota?Can you tell me more about your experiences with S/M that you mentioned earlier?
paulcwa at 2007-7-15 2:47:12 > top of Java-index,Java Essentials,Java Programming...
# 9
Using IMAP. I am using java Mail API.
sri_haria at 2007-7-15 2:47:12 > top of Java-index,Java Essentials,Java Programming...