Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: ddanj
  • Order by date
  1. ddanj

    array attributes

    so i'm trying to use array_name'left, array_name'right in this manner: array_name'left xor array_name'right but the compiler is telling me that xor can't accept the return type of the array attributes, which seems to be 'std.standard.integer', though the type of array i am using is just...
  2. ddanj

    transfering files using scp

    yea i guess, i just didnt want to mess with the expect stuff. to try to keep it Perl only. I just tried rsync -e ssh -r /source host:destination, and that seems to be working. So I'm gona try to modify the already existing scp expect script, and replace the scp with the rsync, and see what...
  3. ddanj

    transfering files using scp

    well the thing is, i have an expect script, that uses scp, sp I dont have to enter the password 50 times or however many computers there are on the network. The whole purpose is to push the authorized_keys through, so THEN I can use other scripts, to just ssh in and do things without a password...
  4. ddanj

    transfering files using scp

    So I'm trying to write a Perl script to transfer authorized_keys to all the computers on the network from a master computer, but I am having trouble. I'm trying to use scp to copy the whole directory like so: scp -r ./keys/ $some_machine:/root/.ssh objective: What I want to accomplish is to...
  5. ddanj

    transfering files using Perl

    So I'm trying to write a Perl script to transfer authorized_keys to all the computers on the network from a master computer, but I am having trouble. I'm trying to use scp to copy the whole directory like so: scp -r ./keys/ $some_machine:/root/.ssh the thing is, the first time I run this...
  6. ddanj

    ssh redirection

    wheres the edit button? 'Pseudo-terminal will not be because stdin is not a terminal' should be 'Pseudo-terminal will not be <b>allocated</b> because stdin is not a terminal'
  7. ddanj

    ssh redirection

    So i'm trying to automate input for SSH. I know I could do it with expect, or by havint authrized_key on all the machines, but I want to do it in another way if possible. I'm trying to basicly do this: ssh root\@$machine > file but i'm getting this error: 'Pseudo-terminal will not be...
  8. ddanj

    system function question

    alright, the @ was the problem. I checked to see if $machine was null, but it was not, so I'm not sure why it still does a useradd automaticly on the local machine. thanx for the help
  9. ddanj

    system function question

    I'm trying to write a perl script that ssh's into a bunch of machines from a list, and runs a useradd. I'm having trouble with it. It seems to be adding the users just fine to the machines in the list, but it keeps printing out 'ssh: root: Name or service not known'. Also it does useradd on...

Part and Inventory Search

Back
Top