Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Can Unix Include files/other code  (Read 3891 times)

0 Members and 1 Guest are viewing this topic.

MikeNindorf

  • Guest
Can Unix Include files/other code
« on: September 14, 2011, 11:47:30 AM »
If so, does the calling/master program have full access to all lines of code in the called file?

Problem:
Exiting application runs SQL commands.  The SQL command needs to be replaced.

My thought would be to include the SQL file (ie., include SQL.TXT)
Then when the SQL changes, the complete file, SQL.TXT would just be replaced.

the file SQL.TXT does have variable- for month and year.
the SQL command may or may not return rows. (That is acceptable, as the main application knows what to do- under both circumstances.)

Thanks for you help.

Rob Pomeroy



    Prodigy

  • Systems Architect
  • Thanked: 124
    • Me
  • Experience: Expert
  • OS: Other
Re: Can Unix Include files/other code
« Reply #1 on: September 15, 2011, 01:17:08 AM »
Doesn't sound like a Unix question to me.  Are you talking about bash scripting?  Making text files polymorphic?  Yes, using bash it is possible to process the content of other files.  I just can't tell from your description exactly what you're trying to do.
Only able to visit the forums sporadically, sorry.

Geek & Dummy - honest news, reviews and howtos