If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Unix Shell Scripts > Running a unix job from visual basic

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-08-11, 05:27
LimaCharlie LimaCharlie is offline
Registered User
 
Join Date: Oct 2005
Posts: 119
Running a unix job from visual basic

HI,

I've been figuirng out how to run a unix job from visual basic or windows dos command prompt using sshg3. Some codes in the job is not recognized. Eror "command not found" appears. The job runs successfully when run in TECTIA (unix).

This is my syntax:
sshg3 -t username@ipaddress#port -Ppassword unix_directory/jobname

Is there something wrong with my syntax? What should be the correct syntax?

Thanks.
Reply With Quote
  #2 (permalink)  
Old 09-08-11, 06:17
kitaman kitaman is offline
Papabi's friend
 
Join Date: Sep 2009
Location: Ontario
Posts: 629
Probably the PATH value is different because there is no terminal environment.
Add "env > /tmp/mylog" to at the beginning of the script, and then look at the log file to see if you need to add any values explicitly in your script.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On