hi everybody, i'm running a script in solaris 8, the script is running background, from the cron, it is a perl script, which calls the system("") function, my problem is when use this function with programs compiled in the SO, it didn't work, for example, "ssh", i use it for write "echo" in other server with a ssh connection, but it didn't connect to the server
system("ssh IPaddres \"echo '$user' >> /dir/allusers\"");
, but if i use
system("echo '$user' >> /dir/allusers") it worked!!!,
i don't know if i need to put some SHELL or PATH variables in the script. If i execute the script manually it works!!!, so only with the cron is the problem, hope somebody can help me!! thanks in advance!!!
Pichi
system("ssh IPaddres \"echo '$user' >> /dir/allusers\"");
, but if i use
system("echo '$user' >> /dir/allusers") it worked!!!,
i don't know if i need to put some SHELL or PATH variables in the script. If i execute the script manually it works!!!, so only with the cron is the problem, hope somebody can help me!! thanks in advance!!!
Pichi