10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello i am having an issue with bash script and this is the code
now=$(cat hosts1.txt | awk '{print $2;}')
while read n ;do
ssh root@$now 'useradd test1; echo -e "test1\ntest1" | passwd test1 && echo "test1 ALL=(ALL:ALL) ALL" >> /etc/sudoers'
When i execute only part with cat, it... (8 Replies)
Discussion started by: tomislav91
8 Replies
2. UNIX for Dummies Questions & Answers
Hi All,
The code is running from A server
cat queuecreation.sh
ssh $1
echo "$3" | runmqsc "$2"
Running the script as below
./queuecreation.sh <servername> <Queuemanagername> <QueuecreationCommand>
./queuecreation.sh Bserver QASSBSSS 'DEFINE QL(TEST)'
The issue here is, ssh... (3 Replies)
Discussion started by: Anusha M
3 Replies
3. Shell Programming and Scripting
I am running a ssh command like this :
ssh abc1234 '. /opt/dba/oraadmin/tools/oraenv.sh -S tstd1; export PATH=$PATH:$ORACLE_HOME/bin;echo "select count(*) from (select b.username from dba_sys_privs a,dba_users b where a.privilege='CREATE SESSION' and a.grantee=b.username union select b.username... (4 Replies)
Discussion started by: talashil
4 Replies
4. Shell Programming and Scripting
Below UNIX script abruptly ends while reading second line from file. When I comment 'ssh' command the script works as expected. I think I will have to run ssh command in a different process, but haven't got a handle yet as regards to how to do that. Any help in resolving this problem is highly... (1 Reply)
Discussion started by: jeeteshkc
1 Replies
5. Shell Programming and Scripting
Net::SSH::Perl ...... how to print the output in a proper format
my $cmd = "ls -l";
my $ssh = Net::SSH::Perl->new($host);
$ssh->login($user, $pass);
my($stdout, $stderr, $exit) = $ssh->cmd("$cmd");
print $stdout;
the script works fine, but i am unable to see the output... (2 Replies)
Discussion started by: gsprasanna
2 Replies
6. UNIX for Dummies Questions & Answers
hi to you all,
Is it possible to change all subfolder's permission to 755 and all the files' permission (regardless of its filetype) t0 644 in 1 command? if so what would be the complete command for this ?
i tried chmod -R permission /folder -- but if will give all the files and subfolders... (3 Replies)
Discussion started by: arsonist
3 Replies
7. SCO
namaskar,hello
i want to connect in unix server as user from ssh login and what i read from document i must dowload x11 , web , etc patch from SCO ftp and after downloading i am not able to connect remote ssh with my SCO server
pls. help me for same 1. what i should define in Sco server and... (0 Replies)
Discussion started by: pankajbraval
0 Replies
8. UNIX for Dummies Questions & Answers
Anyone who has tried creating public and private key from UNIX as client and Windows as server? any idea on how to do this? (1 Reply)
Discussion started by: punyenye
1 Replies
9. UNIX for Advanced & Expert Users
hi
i want run an unix application from a windows program/application.i am using SSH(command line version)to log on to a unix machine from windows. the application has to read a configuration file inorder to run. the configuration file .CFG is in bin in my home directory. but the application... (1 Reply)
Discussion started by: megastar
1 Replies
10. UNIX for Advanced & Expert Users
Hi,
I am getting core file in local machine after trasfer files to other machine by using scp (secure copy) of SSH in UNIX.
Could any one please tell me how to restrict core file generatation by using scp command. (4 Replies)
Discussion started by: nrsekhar
4 Replies