I'm sorry, I am looking to have a flat file with usernames and passwords. Upon running a script we want to be able to add those usernames and password to our server. Basically we rebuilt our development server and want to create a user account for each user that is on our production box. Instead...
Is there a way to create a unix user/passwd script that reads from a flat file? I am unsure if it would be possible to add the passwd since you are prompted to add the new password and then confirming the new password. For example the flat text file would have a user and password column...
I am invoking the java command in a perl script. So:
my $command = "java MyClass";
sysyem $command;
I am unfamiliar with the DISPLAY command. I am not sure what I need to pass into the display. Would it be the IP of the server or the IP of the user's PC?
Thanks....
I am having problems getting a java window to come up from a Perl script. When I open an x-window I am able to execute to java command and the window shows up, but when I try and execute the java command in the perl script I get the following error:
Exception in thread "main"...
I am trying to write an ipl script that opens up an X window seesion so a java module can be run in a Perl based application. I am relatively new to Perl and am not sure how to do this. Thanks...
- Marc
I have read through the sftp documentation and I am not finding any login methods such as in ftp. The big issue is trying to get the if the login fails, then throw an error part. I tried using Net::SSH::Perl to check the login/password but that didn't work properly. Let me know if you have any...
Here is the ftp code that I currently use:
my $ftp ='';
$ftp = Net::FTP->new("$target_server", timeout => 999999999999);
if ($ftp->login("$login_name","$password"))
{
$ftp->cwd("$initial_dir");
$ftp->put("/var/tmp_tar/$tar_filename"...
I am having problems with the following pseudocode:
if user's remote server login/password valid{
sftp file to remote server
}else{
throw an error
}
Basically my application uses ftp currently to do this. The user enters in his/her login and password to copy a file from the local server...
I am trying to use scp to tranfer files from server a to server b. In the GUI, the user selects the file to transfer, specifies the remote server name, and enters their unix username and password. How do I code this in Perl so that the scp command is executed at the command line followed by the...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.