I have a basic shell script like this;
#!/usr/bin/bash
echo "Openning ssh connection to remote host "$2" for "$1" user and finding the archive directory "$3""
ssh "$1"@"$2" find "$3"
I have another perl script named with Archive.pl in that script we are connecting remote server with Telnet connection. I want to call my script inside this Perl script to use other modules of Perl script. I'm trying that command but it doesn't work.
system("Connector.sh",$arg1,$arg2,$arg3);
Any ideas to do that ?
echo "Opening ... "$2" for "$1" ...."$3""?