Thank you very much for the system sugestion, but now i have a problem: i put the command in this way and it doesn't print anything:
system("rsh xxx.aaa.yyy. 'source.login; find -p AXY -D | sort -c | bugval -a %a a'")!
If I write system("rsh aaa.xxx.yyy") It's ok, i can connect! But i want to print the data so i write the entire command but it's error! Thanks for helping me again!