BOB: Business Objects Board
Not endorsed by or affiliated with SAP

Register | Login 

Want to sponsor BOB? 
Want to sponsor BOB? (Opens a new window)  

General Notice: No events within the next 45 days.

exec command for linux


 
Search this topic... | Search DI: Designer and Job Design... | Search Box
Register or Login to Post    Forum Index -> Data Integrator -> DI: Designer and Job Design  Previous TopicPrint TopicNext Topic
Author Message
etlbods
Forum Member
Forum Member



Joined: 11 Oct 2018

Posts: 3



PostPosted: Thu Oct 11, 2018 3:20 pm 
Post subject: exec command for linux

I am trying to execute a series of linux commands using exec and they don't work. A simple test I am using:

exec('/bin/sh', '-c "echo Total Files Received: [$GV_RecvdCount] >> [$GV_BK_OUTPUT_FILE_PATH]/BKDailylog.txt"' ,8);

any help please.....
Back to top
jlynn73
Forum Associate
Forum Associate



Joined: 27 Oct 2009

Posts: 550
Location: DesMoines Iowa


flag
PostPosted: Fri Oct 12, 2018 7:34 am 
Post subject: Re: exec command for linux

when you put quotes "around a bunch of words with spaces in between them" you turn them all into one big argument.
Back to top
etlbods
Forum Member
Forum Member



Joined: 11 Oct 2018

Posts: 3



PostPosted: Fri Oct 12, 2018 2:12 pm 
Post subject: Re: exec command for linux

So, how do you recommend doing this requirement ?
Back to top
etlbods
Forum Member
Forum Member



Joined: 11 Oct 2018

Posts: 3



PostPosted: Mon Oct 15, 2018 2:19 pm 
Post subject: Re: exec command for linux

Anyone have any suggestion ? anybody encountered this requirement ? how are you handling it ?
BODS has issues when executing linux/unix commands with spaces in the arguments..any fixes or workarounds will be a great help !!
Back to top
Display posts from previous:   
Register or Login to Post    Forum Index -> Data Integrator -> DI: Designer and Job Design  Previous TopicPrint TopicNext Topic
Page 1 of 1 All times are GMT - 5 Hours
 
Jump to:  

Index | About | FAQ | RAG | Privacy | Search |  Register |  Login 

Get community updates via Twitter:

Not endorsed by or affiliated with SAP
Powered by phpBB © phpBB Group
Generated in 0.0325 seconds using 17 queries. (SQL 0.0036 Parse 0.0013 Other 0.0276)
CCBot/2.0 (https://commoncrawl.org/faq/)
Hosted by ForumTopics.com | Terms of Service
phpBB Customizations by the phpBBDoctor.com
Shameless plug for MomentsOfLight.com Moments of Light Logo