Link to home
Start Free TrialLog in
Avatar of magento
magento

asked on

Shell help

Hi ,

I have a question . In my shell script is it possible to call the java program .(its a standalone code).

Eg.

#!/bin/bash
command1;
command2;
somecode.class #Java code
command3;
exit 0

Thanks
Avatar of omarfarid
omarfarid
Flag of United Arab Emirates image

Yes, you can call it the same way you call it from command prompt.
Avatar of magento
magento

ASKER

Any sample please ?
ASKER CERTIFIED SOLUTION
Avatar of omarfarid
omarfarid
Flag of United Arab Emirates image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of magento

ASKER

Hi Omarfarid,

Thanks for your help , i havent tried the above. I will close the thread once i checked it.

Thanks
Avatar of magento

ASKER

Worked as expected . Thanks