Đã hoàn thành

Jenkins calling /creating script

Here is the program from the 1st line to the start of the problem in my script. What could that last problem be?

export myip="[url removed, login to view]"

export mykey="~/.ssh/[url removed, login to view]"

export mystr="sh /home/ubuntu/[url removed, login to view]"

export mycmd="$mystr $myip"

echo "myip.......$myip" >NULL

echo "mykey......$mykey" >NULL

echo "mystr......$mystr" >NULL

echo "mycmd......$mycmd" >NULL

scp -i $mykey /vol1/[url removed, login to view] ubuntu@$myip:


ssh -i $mykey ubuntu@$myip ""sudo echo "$mycmd" > ./[url removed, login to view]""

# The output expected is

sudo echo "sh /home/ubuntu/[url removed, login to view] [url removed, login to view]" > ./[url removed, login to view]

Anticipating a " or character is out of sorts or something?

Kĩ năng: Linux, Shell Script, UNIX

Xem nhiều hơn: script creating profiles, pdns script creating, script creating roll banner actionscript, creating calling card designs photoshop, php script creating virtual subdomain, script creating iis website, script creating users file, script creating exhcange accounts, script creating website, script creating pages, php script creating songs download site, php script creating sub domein, script creating wiki zoho, php script creating job portal, creating calling card photoshop

Về Bên Thuê:
( 65 nhận xét ) Lyndhurst, United States

ID dự án: #13340655

Được trao cho:

$30 USD trong 1 ngày
(8 Đánh Giá)

9 freelancer chào giá trung bình$23 cho công việc này


Hi, Why you not ping me directly? We can agree on price and work together long term

$25 USD trong 1 ngày
(302 Nhận xét)
$25 USD trong 1 ngày
(41 Nhận xét)

Hi Ejbest2000, I am competitive to this kind of task, can take good care of this project. In fact, I already done related to this job before. Let me know the best of your time so we can discuss further based on your r Thêm

$29 USD trong 1 ngày
(22 Nhận xét)

The quoting is indeed wrong. Here is the solution that works for me: ssh -i $mykey ubuntu@$myip "'sudo echo \"$mycmd\" > ./[login to view URL]'" I was bidding, so that I can give you this answer. It's just a one-lin Thêm

$25 USD trong 1 ngày
(7 Nhận xét)

Hello, Greetings..!! As I can see that you are looking for a technical person who can assist you perfectly in your project. Well I would like to express my interest in your job as it seems very interesting pro Thêm

$30 USD trong 1 ngày
(0 Nhận xét)

Hi, I think the issue in your script is that that ========================================================== [root@localhost bin]# echo $mycmd sh /home/ubuntu/[login to view URL] [login to view URL] [root@localhost bin] Thêm

$10 USD trong 1 ngày
(0 Nhận xét)

Hi, I think I can help you out here and get your issue resolved. Awaiting for your response. Thanks.

$25 USD trong 1 ngày
(0 Nhận xét)

Dear, I have been working as a Test Engineer from past three years in a reputed organistaion and working for automation (using shell and perl) of telecom projects . I hope that my expereince will help you to sor Thêm

$10 USD trong 1 ngày
(0 Nhận xét)