Search Results

Search: Posts Made By: Damon_Qu
4,049
Posted By Damon_Qu
ssh execute command remotely
Hi all,

Today I want to write a script to run the commands remotely.
If I run the command as follows:
ssh <user>@<ip> 'ls; pwd'

it works fine.

But when I want to use ssh to set view in...
1,420
Posted By Damon_Qu
Simple Question about Reading file by Perl
Hi ,

I just write a simple function to read the file line by line.
But when I run it it says out of memory.
I am not sure about the root cause, Can someone help me out of this?
:D


#!...
3,622
Posted By Damon_Qu
I think radoulov did not understand the question ...
I think radoulov did not understand the question
I have two branches in the expect script
one is for the normal execution (no error occurs)
the other is for the error occurrence
can I use the if...
3,622
Posted By Damon_Qu
Expect script
Hi All,

I have some problem about expect script. Is there anyone can help me out of this?

I want to write a expect script for Solaris. It has two branches.
Normally, we should expect as...
2,398
Posted By Damon_Qu
1. The /bin/sh is not same as the bash...
1. The /bin/sh is not same as the bash (/bin/bash)
2. I also use an array to store the outcome and the output is null
because I save the information of 'java -version ' into a file named jdk.txt...
2,398
Posted By Damon_Qu
Invoke a bash script with perl
Hi all,

I use the perl script to invoke the bash script. and now there is a problem.

my bash script lists as follows:

and I use perl run this test scripts

now the problem is when I run...
5,581
Posted By Damon_Qu
Get the substring
Hi All,

I have a ouput string likes 'u8wos' or 'u10acsd' or somthing else 'u{number}{any characters}'and I want to get the number behind the letter 'u' by bash shell.



Thanks
Damon
7,671
Posted By Damon_Qu
thanks anyway is there any other good ideas? I...
thanks anyway
is there any other good ideas? I dont want to solve the problem like this.
7,671
Posted By Damon_Qu
Delete blank lines from a file
Hi,
I want to use diff to compare two files in a Perl file. But one of the files has some blank lines at the end. So I want to delete the blank lines from the file firstly and then use diff to...
1,967
Posted By Damon_Qu
have you put or store the package in the paths...
have you put or store the package in the paths exist in the @INC matrix so Perl can find it when the package's method been called.



use Result;
Yes, I think I have.
1,967
Posted By Damon_Qu
perl data structure
Hi All,
I want to create a data structure like this

$VAR1 = {
'testsuite' => {
'DHCP' => {
'failures' => '0',
...
11,215
Posted By Damon_Qu
How to install perl modules in Solaris
Hi All,
How to install the perl modules in Solaris?

pwd
/eweiquu/ocsta/lib/XML-Simple-2.18

and
bash-3.00# perl Makefile.PL
Checking installed modules ...
XML::Parser is installed, it will...
2,715
Posted By Damon_Qu
pointer in perl
Hi all,
using Data:: Dumper to display the content which a pointer point to .
$config is a pointer
using Dumper($config) to display the content as follows
$VAR1 = {
'Jack' => {
...
4,112
Posted By Damon_Qu
Using perl to get options from command line
Hi all,
I want to get options from command line by perl.
usage()
options:
-h Show this help message and exit
-t Name of...
1,212
Posted By Damon_Qu
Test Script
Hi all,
Now I want to write a test script using bash and expect script

I write a expect script as follows:
#! /usr/local/bin/expect

set command [ lindex $argv 0 ]
set password [lindex $argv...
4
1,199
Posted By Damon_Qu
Thanks for you help. I think I know how to deal...
Thanks for you help.
I think I know how to deal with it .
4
1,199
Posted By Damon_Qu
bash
Hi All,
I have a question about shell script
I have a file named a.txt
#a.txt
RBS155_SITE1
IP=10.42.33.3
OptBootF="/WRAN/smrsslave1/AIF/Site1RBS155/summaryFile.xml"

RBS15_SITE1...
Showing results 1 to 17 of 17

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