LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-13-2005, 09:01 AM   #1
petenyce
Member
 
Registered: Sep 2005
Posts: 39

Rep: Reputation: 15
Problem with simple script


I have a scrip0t test.sh thats suppose to move data out of my Referral_Authorization table into my referralhistory table. this script worked before now it does nothing someone please help. im running this with full permissions but it dosent move any data at all???


Thanks


Test.sh
#!/bin/bash
/usr/bin/mysql -h localhost -u root -pxxx ehpadmin </usr/etc/script.sql


script.sql
INSERT INTO referralhistory(MEMBERID,MEMBERNAME,SEX,DOB,ADDRESS,CITY,STATE,ZIP,PHONE,HEALTHPLAN,DIAGNOSIS,ICD91, ICD92,ICD93,ICD94,REQUEST,RETDATE,PCP,REFLAST,REFFIRST,REFPHONE,REFFAX,REFTOLAST,REFTOADDRESS,REFTOC ITY,REFTOSTATE,REFTOZIP,REFTOPHONE,REFTOFAX,SPECIALTY,SERV,HOMEHEALTH,SPECSERV,PREGCARE,PHYCARE,CONS ERV,OUTPAT,FLUSERV,HOSPSERV,FAMSERV,DMESERV,OTHER,CPT1,CPT2,CPT3,CPT4,SERVD,DATEREQ,COMM,EMAIL,AUTHN O,USERNAME,PROVTAXID,FORMTYPE)
SELECT MEMBERID,MEMBER_NAME,SEX,DOB,ADDRESS,CITY,STATE,ZIP,PHONE,HEALTHPLAN,DIAGNOSIS,ICD_9_1,ICD_9_2,ICD_9 _3,ICD_9_4,REQUEST,RET,PCP,REFLAST,REFFIRST,REFPHONE,REFFAX,REFTOLAST,REFTOADDRESS,REFTOCITY,REFTOST ATE,REFTOZIP,REFTOPHONE,REFTOFAX,SPECIALTY,SERV,HOMHEALTH,SPECSERV,PREGCARE,PHYCARE,CONSERV,OUTPAT,F LUSERV,HOSPSERV,FAMSERV,DMESERV,OTHER,CPT1,CPT2,CPT3,CPT4,SERVD,DATREQ,COMM,EMAIL,AUTHNO,USERNAME,PR OVTAXID,FORMTYPE FROM Referral_Authorization;
 
Old 10-13-2005, 10:00 AM   #2
blindcoder
ROCK Linux
 
Registered: Dec 2003
Location: Berlin, Germany
Distribution: Crystal ROCK
Posts: 108

Rep: Reputation: 15
well, what did you change in the meantime? any softwareupdates?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with simple shell script for loop abefroman Programming 2 10-25-2005 09:26 PM
simple script problem jong357 Programming 2 09-24-2005 05:13 PM
problem with a simple script bash stockerz Linux - Newbie 1 09-21-2004 12:42 PM
iptables problem in a very simple script max_sipos Linux - Security 2 08-10-2004 07:58 AM
Simple shell script problem? Corallis Linux - Newbie 3 03-22-2004 12:25 AM


All times are GMT -5. The time now is 06:40 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration