Baanboard.com

Go Back   Baanboard.com > Forum > Baan SIGs > Code & Utilities

User login

Frontpage Sponsor

Main

Poll
For ERP LN feature pack upgrade, what method of install are you using?
Installation Wizard into existing VRC
35%
Installation Wizard into new VRC
42%
Manual into existing VRC
3%
Manual into new VRC
19%
Total votes: 31

Baanboard at LinkedIn


Reference Content

Reply
 
Thread Tools Display Modes
  #1  
Old 29th November 2001, 17:07
gfasbender gfasbender is offline
Senior Member
 
Join Date: Aug 2001
Location: Seattle, WA USA
Posts: 172
gfasbender is on a distinguished road
Baan: Baan IV, Baan5, A&D extension - DB: Oracle, MSSQL, Informix - OS: Unix, NT
CODE: 'C' Code - ReMove Zero-length Files

See http://www.baanboard.com/node/1767

Last edited by patvdv : 4th April 2006 at 21:11.
Reply With Quote
  #2  
Old 29th November 2001, 18:17
NPRao's Avatar
NPRao NPRao is offline
Guru
 
Join Date: Aug 2001
Location: Pacific NW, USA
Posts: 3,028
NPRao will become famous soon enough
Baan: iBaanERP-5.2a(Reger),SSA-ERP-LN-6.1,Infor LN-10.x - DB: Oracle-10g,11g,12c,MS-SQL - OS: HP-UX, Linux, Windows
Hi,

I am curious to know, why would you like to use the C language when you can develop the same tool in baan tools using the various functions as -

long file.stat( string file_name(256), ref long file_size [, ref long ctime, ref long mtime, ref long atime ] )

long seq.unlink( string path_name(128) )

Description

This deletes the file indicated by the path_name argument.
Reply With Quote
  #3  
Old 30th November 2001, 02:58
mark_h's Avatar
mark_h mark_h is offline
Guru
 
Join Date: Sep 2001
Location: Kentucky, USA
Posts: 6,905
mark_h will become famous soon enough
Baan: Baan 4C4 A&D1 - DB: Oracle - OS: Sun Solaris
Good Question

Hi NPRao2000,

That is a good question, but in this forum the tools are not limited to just Baan tools coding. This may be useful to a system or application admin type. In some cases we may need to post more info with the script - like why and how we use it. I can see several possiblities for the code - but I do not have access to a C compiler. I would convert it into a Baan library or function to be called by one of my sessions. Thanks for the question and hopefully Gordon will clarify this.


Thanks

Mark
Reply With Quote
  #4  
Old 30th November 2001, 16:21
gfasbender gfasbender is offline
Senior Member
 
Join Date: Aug 2001
Location: Seattle, WA USA
Posts: 172
gfasbender is on a distinguished road
Baan: Baan IV, Baan5, A&D extension - DB: Oracle, MSSQL, Informix - OS: Unix, NT
'C' Vs. Baan

I guess I have to address this as a consultant. Traveling around to different companies and sites, it's a lot easier to port and install a utility 'C' program on the clients Unix box, under my own id, than it is to get the customer's approval to install a "Baan Customization".

Also, during certain periods, I work considerably more in a Unix shell than I do in Baan, and it's quicker to start the 'C' program from the command line than it is to execute a Baan session that does the same thing.

I guess, if I worked as a developer for one company, I would create a utility Baan session, instead of the 'C' program.

I hope this helps.

Gordon
Reply With Quote
Sponsored Links
  #5  
Old 30th November 2001, 19:29
NPRao's Avatar
NPRao NPRao is offline
Guru
 
Join Date: Aug 2001
Location: Pacific NW, USA
Posts: 3,028
NPRao will become famous soon enough
Baan: iBaanERP-5.2a(Reger),SSA-ERP-LN-6.1,Infor LN-10.x - DB: Oracle-10g,11g,12c,MS-SQL - OS: HP-UX, Linux, Windows
Hi Gordon,

I cannot comment much on portability issues between operating systems as I have always worked with BaaN on Unix.

Yes I agree that we can develop good shell scripts on Unix. But I prefer to write in Baan Tools if possible for the portability of Baan tools on Unix and Windows. If the baan tools cannot support some functions depending on the operating systems then I would then look in for the operating system specific tools/utilities. I mostly start developing them as a 3-GL programs and if they are good and useful for others I make it into a session with some UI.

Ofcourse I seen few shell scripts which are better in Unix and I dont know how to put them in baan tools.
Reply With Quote
  #6  
Old 30th December 2001, 05:41
KlayVessel KlayVessel is offline
Member
 
Join Date: Aug 2001
Location: Atlanta, Georgia
Posts: 30
KlayVessel is on a distinguished road
Baan: 3b2, 4(b-c4), 5c - DB: Oracle 7, Oracle 8, MS-SQL, Informix - OS: HP-UX, AIX, Tru64, Sun, NT, Linux
Wow, that's a lot of work for both the programmer and the system. If you're sticking with Unix, why not:

Code:
#!/usr/bin/ksh
DIR=${1:-"."}
find $DIR -size 0c -type f | xargs rm -f

(only the last line is really needed, the DIR var is included for clarity).
__________________
Kevin Brock, OCP, MCSE / Senior Technical Consultant
Fullscope (formerly RedKlay, formerly QCI)
(Web & Baan Consultants)

Last edited by patvdv : 12th May 2006 at 18:42.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
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

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
NEW: vbcode CODE extensions patvdv About Baanboard.com 3 13th March 2003 11:19
CODE: save/archive Baan log files (ksh) patvdv Code & Utilities 0 19th December 2001 21:40


All times are GMT +2. The time now is 20:50.


©2001-2017 - Baanboard.com - Baanforums.com