Search Results

Search: Posts Made By: toro95037
2,482
Posted By toro95037
(ssh is the best way to go) ...but, I did...
(ssh is the best way to go) ...but,

I did get this working with no expect commands on port 23:
(vi telnetpass.sh)

#!/bin/sh
host=test001.your.company.com
port=23
login=admin...
2,482
Posted By toro95037
You could try something like this (not sure if it...
You could try something like this (not sure if it will work on port 23):


username="myLogin"
password=`cat passwd.txt`

telnet 192.168.10.100 8101 <<EOF
$username
$password
...
Forum: Red Hat 09-22-2012
7,193
Posted By toro95037
Remove the blank character after the name= & ...
Remove the blank character after the name=
&
Remove the extra / from file://


[local repo]
name=OS $release
baseurl=file:/root/install/RPMS/
enabled=1
gpgcheck=0
1,281
Posted By toro95037
It's best to think about UNIX files as not...
It's best to think about UNIX files as not blocked, think more like a single data stream for the entire file content. File size on UNIX is a total byte count, so if you have 50 lines of block size 80...
9,886
Posted By toro95037
Create an alias called "du." alias du.='du...
Create an alias called "du."

alias du.='du -k | grep -v "/.*/" | sort -n'Then using a combination of du.'s ... cd's ... & ls -la's you should be able to determine where and which file(s) are using...
3,099
Posted By toro95037
Plink (PuTTY Link) is a command-line connection...
Plink (PuTTY Link) is a command-line connection tool similar to UNIX ssh. It is mostly used for automated operations.
3,441
Posted By toro95037
YUM GROUPLIST not working on SLES 11
I have a SLES 11 install with yum also installed. yum works when I try to install single packages.

However, when i try the yum command: "yum grouplist" yum can not detect any groups.

Is there...
Forum: Red Hat 01-04-2012
34,992
Posted By toro95037
IBM product documentation for Sterling Connect :...
IBM product documentation for Sterling Connect : Direct ...

IBM Sterling Connect:Direct for UNIX Documentation - United States (http://www-01.ibm.com/support/docview.wss?uid=swg27023602)
...
1,022
Posted By toro95037
A slightly different way using an array... ...
A slightly different way using an array...


#!/bin/bash

declare -a filelist=($( /bin/ls *.txt))
max=${#filelist[@]}

`rm appendfile`
let END=50 lowest=1 highest=$max
while ((i<=END))
do...
5,040
Posted By toro95037
I've had a similar error when there was a broken...
I've had a similar error when there was a broken key above mine in the ~/.ssh/authorized_keys file. Move your key to the top and see if that helps.
1,369
Posted By toro95037
Wrap your script around this command: ssh...
Wrap your script around this command:


ssh loginsudouserid@hostname.domain.com 'echo "targetuserid:newpassword" | /usr/bin/sudo /usr/sbin/chpasswd';
7,713
Posted By toro95037
Yes, I agree with dude2cool --- make it simpler,...
Yes, I agree with dude2cool --- make it simpler, get rid of all those do's and indentation makes it easier to read and to follow your logic flow ...


#!/usr/bin/ksh

for server in `cat...
1,332
Posted By toro95037
You need to escape your awk single quotes ...
You need to escape your awk single quotes

alias lx='ls -lat | awk '\''{k=0;for(i=0;i<=8;i++)k+=((substr($1,i+2,1)~/[rwx]/)*2^(8-i));if(k)printf("%0o ",k);print}'\'''
4,913
Posted By toro95037
VAR=$(echo test.txt | cut -d . -f1) echo $VAR ...
VAR=$(echo test.txt | cut -d . -f1)
echo $VAR

and get the output "text"
Forum: AIX 11-22-2010
14,053
Posted By toro95037
The short answer is yes. To get details on...
The short answer is yes.

To get details on ftp transactions you need to turn on logging in your ftp configuration file and restart the ftp process. A typical destination is /var/log/messages. The...
2,305
Posted By toro95037
Try adding the -e switch to the echo command ...
Try adding the -e switch to the echo command

do echo -e "Processing $each...\n";
4,858
Posted By toro95037
I've had very good success with this type of...
I've had very good success with this type of script:

( ssh -T root@$i << EOF >> $log_file 2>&1 & )

or

( ssh -T root@$i << EOF >> $log_file 2>&1 | tee another.log.file & )


#!/bin/bash...
Showing results 1 to 17 of 17

 
All times are GMT -4. The time now is 01:51 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy