manojsharma
23rd June 2003, 16:03
hi all,

I am using a unix command in my baan session.

shell("mail to:abc@xyz.com")

its working fine. My problem is that when I pass abc@xyz.com through variable, its not accepting. This is probably due to that I am passing variable through baan to unix.

Can anybody help me.

Thanx in advance.

Juergen
23rd June 2003, 16:58
Hi,

if I understand your problem right maybe this can be a solution

string sh.cmd(80)
string mail.adr(80)

mail.adr = "abc@xyz.com"
sh.cmd = "mail to:" & mail.adr

ret = shell(sh.cmd,0)

Juergen

manojsharma
26th June 2003, 08:03
Hi Juergen,

Thanx, its working fine.

Thanx a lot