I have the following perl code that I use to run backups on remote machines. No problems here, the code works without problems
The code is used for full backups once a week but I want to modify if to do partial backups every 3 days.
I have come up with the following code
but I get the error message "bash: -c: line 1: syntax error near unexpected token `(' " .
Thinking that there is a problem with "/(" I modifiied it to "\", "(", and "\", ")", which gives me the error message
"String found where operator expected at ./pl-backup line 84, near "wholename", ""
Unquoted string "dev" may clash with future reserved word at ./pl-backup line 84. "
Hi,
I am trying to complete my bash script in order to find which SSH servers on LAN are still active with the ssh keys, but i am frozen at this step:
#!/bin/bash
# LAN SSH KEYS DISCOVERY SCRIPT
</etc/passwd \
grep /bin/bash |
cut -d: -f6 |
sudo xargs -i -- sh -c '
&& cat... (11 Replies)
I'm trying to create a perl script that will do 1 SSH session, but be able to write multiple commands to the session and receive multiple outputs. I know there are modules out there like Net:SSH::Perl, but I'm not allowed to use it. I was thinking of doing something like an open3 on an ssh... (4 Replies)
Hi Friends,
Please help me to sort out this problem, I am running this in centos o/s and whenever I run this script I am getting "find: missing argument to `-exec' " but when I run the same code in the command line I didn't find any problem. I am using perl script to run this ... (2 Replies)
Hey guys
I am trying to send a perl -e command to a number of systems using SSH. The command should retrieve some information for me. The problem is, the remote shell tries to interpolate my variables and doesn't get it should take the command literally and just execute it.
Below the code.... (2 Replies)
How can i ssh into a remote system using ssh command in a shell script with password?
I havent used password less authentication for the remote system.
Thanks and Regards,
Rupaa (4 Replies)
Hello all,
I have a relatively simple script I wrote to generate a count of errors broken down. What I would like to do is execute this script from another server so that I don't actually have to log in to the server to run the check.
The script on what we'll call "Server A" is:
... (2 Replies)
hello
i am using sshpass to pass the password when trying to ssh to another system with script
it works like that
sshpass -p 'm7843jdf' ssh -o StrictHostKeyChecking=no serverXY
the problem i wants to run application commands after i login like the following
cd /opt/monitor/roco... (4 Replies)
hello All,
I need to invoke by perl script some program/command and monitor it for 5
minutes . In case it still running for more then 5 min I need to send a signal which will stop it.
I implemeted this as shown below by using eval & alarm
and I'd like to know if there is a better way to... (1 Reply)
I am using shell script to do secure ftp. I have done key file setup to do password less authentication. Following are the FTP Details:
FTP Client has Sun SSH.
FTP Server has F-Secure.
I am using SCP Command to do secure copy files. When I am doing this, I am getting the foll error
scp:... (2 Replies)
I need to install ypbind and yp-tools on over two-hundred remote client machines based on their redhat version. I have a centralized server on which I created an ssh public key. I then transfered the ssh public key to the authorized_keys file on all the remote hosts; therefore, I can login without... (1 Reply)