Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] General Discussion
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 11-09-2011, 05:21 PM
Albin Albin is online now
Registered User
 
Join Date: 11-08-2011
Posts: 3
Telnet Scripting BASH IF Statements cause errors

I'm trying to write a bash if statement in the telnet script area and it is giving me an error. How can I resolve getting this to work without creating a script to do the if statement?

SCRIPT THAT IS NOT WORKING
-------------------------------
build@
if [ -d /home/build ] ; then echo "EXISTS" ; fi
build@

OUTPUT
---------------------------------
Connecting to SSH server 'sles10v'
Error expanding macros or script in property Script: build@
if <Error at Line 1, Column 2 (Overflow)>
09/11/2011 5:17:25 PM: Step '3 - SSH SNMPD' failed
09/11/2011 5:17:25 PM: Build ended (elapsed = 00:00:01).


SCRIPT THAT IS WORKING
-------------------------------
build@
pwd
build@

OUTPUT
-------------------------------
build@sles10v ~ :

=> Sending to server:
pwd

<= Received from server:
/home/build
build@sles10v ~ :
Script successfully executed
09/11/2011 5:15:26 PM: Building project step 4 - test AIX Builds...
Done processing loop
09/11/2011 5:15:26 PM: Build successfully completed (elapsed = 00:00:04).
Reply With Quote
  #2  
Old 11-09-2011, 05:30 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
http://www.kinook.com/VisBuildPro/Ma...ecialchars.htm
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



All times are GMT -5. The time now is 02:21 AM.


Copyright © 1999-2023 Kinook Software, Inc.