Message Area
Casually read the BBS message area using an easy to use interface. Messages are categorized exactly like they are on the BBS. You may post new messages or reply to existing messages!

You are not logged in. Login here for full access privileges.

Previous Message | Next Message | Back to Linux And Related Batch Scriptin...  <--  <--- Return to Home Page
   Networked Database  Linux And Related Batch Scriptin...   [128 / 130] RSS
 From   To   Subject   Date/Time 
Message   Alan Ianson    All   My bash script   August 3, 2019
 12:13 PM *  

Hello All,

I am using this in a bash script to toss incoming files here and am having a
problem with it that I hope someone can shed some light on for me.

---- begin import mailin.sh ---

# process tics
if [ -f fido/inbound/*.tic ]; then
./bbbs btick > /dev/null 2>&1
./bbbs bfilsort > /dev/null 2>&1
./bbbs bfileidx > /dev/null 2>&1
fi

That is a snippit from my script that tosses inbound files. It works fine if
there in just one inbound *.tic but if there are more than one tic to be
processed it fails and I see this..

scripts/mailin.sh: 14: [: fido/inbound/12345678.tic: unexpected operator

I'm not sure what that means or how to overcome it. Any suggestions?

One last question.. I have a second section like the aboveeeee that looks for
*.TIC instead of *.tic. Is there a way to edit the above line to look for both
*.tic and *.TIC?

Thanks for any pointers.. :)

--- BBBS/Li6 v4.10 Toy-4
 * Origin: The Rusty MailBox - Penticton, BC Canada (1:153/757)
  Show ANSI Codes | Hide BBCodes | Show Color Codes | Hide Encoding | Hide HTML Tags | Show Routing
Previous Message | Next Message | Back to Linux And Related Batch Scriptin...  <--  <--- Return to Home Page

VADV-PHP
Execution Time: 0.0671 seconds

If you experience any problems with this website or need help, contact the webmaster.
VADV-PHP Copyright © 2002-2024 Steve Winn, Aspect Technologies. All Rights Reserved.
Virtual Advanced Copyright © 1995-1997 Roland De Graaf.
v2.0.140505

Warning: Unknown: open(c:\Sessions\sess_h56itlnt8irra3mrpslc9h6ot5, O_RDWR) failed: No such file or directory (2) in Unknown on line 0 Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (c:\Sessions) in Unknown on line 0 PHP Warning: session_start(): open(c:\Sessions\sess_h56itlnt8irra3mrpslc9h6ot5, O_RDWR) failed: No such file or directory (2) in D:\wc5\http\public\VADV\include\common.inc.php on line 45 PHP Warning: Unknown: open(c:\Sessions\sess_h56itlnt8irra3mrpslc9h6ot5, O_RDWR) failed: No such file or directory (2) in Unknown on line 0 PHP Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (c:\Sessions) in Unknown on line 0