Have issue with variable


 
Thread Tools Search this Thread
Top Forums Programming Have issue with variable
# 1  
Old 08-07-2008
Question Have issue with variable

Hi All,

i am new to unix..

i have an issue with my unix script...let me explain the task that i want to make script....

i prepared script which will connect data base from my linux box using sqlplus cmd...

however in that i want to use the variable like below..

select * from tablename where reference in ($variable) and status not null;

also the output should save in my linux box itself..to send back to my email id as a report in daily basis..

can anyone help me to use the variable here...so that would be great help..

Thanks in advance..

Sha..
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Issue with variable within a loop

I have this file (1.txt): >sample TCGGCCCGJOHNTTTTGCGGGCCGCATTGTCGCCAGGCGCDOEGGGGTTTGCGATCGCCACGGGGCTGATGGTGGCGACCCGCTGCACCCGG I am using the following script to "trim" the sequence awk '{gsub(/^.*JOHN|DOE.*$/,"",$0)} 1' This is the output: >sample TTTTGCGGGCCGCATTGTCGCCAGGCGC ... (6 Replies)
Discussion started by: Xterra
6 Replies

2. UNIX for Dummies Questions & Answers

Issue with variable assignation

Hi All, My files(.csv) are created in download path. All the files files are having footer with count of rows or may be blank. When i am trying to put this below code in shell script and run it, the row_num is not getting assigned, but works correctly on command prompt. I am trying to put this... (2 Replies)
Discussion started by: abhi_123
2 Replies

3. Shell Programming and Scripting

Variable value substitution issue with awk command issue

Hi All, I am using the below script which has awk command, but it is not returing the expected result. can some pls help me to correct the command. The below script sample.ksh should give the result if the value of last 4 digits in the variable NM matches with the variable value DAT. The... (7 Replies)
Discussion started by: G.K.K
7 Replies

4. Shell Programming and Scripting

Issue with AWK using a variable

Hi, I am doing an AWK in ksh as below with the string to search to be read from variable but for some reason there is no output. It works when I hard code it. awk 'substr($0,22,6)=="${VAR}"' XXX.txt' >YYY.txt On reading other posts I tried below option, 'substr($0,22,6)=="/"${VAR}/""' ... (3 Replies)
Discussion started by: junnujayz
3 Replies

5. UNIX for Dummies Questions & Answers

PLease HELP!!! PATH variable issue

Hello, I logged in to the unix solaris with my user name and then I again logged in with the sudo bash -l command now when I do echo $PATH It shows me => /usr/bin:/usr/local/bin:/usr/bin/usr/sbin:/usr/ucb:/usr/local/bin How do i find out where is this file located for setting the... (3 Replies)
Discussion started by: siddhans
3 Replies

6. Shell Programming and Scripting

variable issue

Hi, I'm sure that it's a very simple issue. this is a part of my code : while read ligne do result=`ls -R ../FILES/|grep "."$ligne"$"` echo $result done<TYPE_EXT_FILES.txt the echo return nothing (as my variable is empty). I'm sure that the problem... (10 Replies)
Discussion started by: skubann
10 Replies

7. Shell Programming and Scripting

Issue in Variable in SSH

Friends, I want to write a script. The logic follows 1. Script starts 2. SSH to Remote Machine and check whether /home/testUser dir is there or not. 3. If it is there, am assigning a value to a variable. else not 4. If the variable is set, the do the copy from remote machine to my local... (2 Replies)
Discussion started by: balamv
2 Replies

8. Shell Programming and Scripting

UNIX variable issue

Hi all, Something funny happen with this code: EXIST=`ssh batch@190.2.332.234 'if ; then echo 0; else echo 1 ; fi'` echo $EXIST Above code will display "1". The value of remotePath is /home/batch The value of fileName is sample.txt ========================================= ... (1 Reply)
Discussion started by: suigion
1 Replies

9. Shell Programming and Scripting

Variable sub-menu issue

The code im having problems with is highlighted in red, upon selecting option 2 on the main menu (highlighted green) my echo "NETWORK CONNECTIVITY" command seems to get overlooked and the resulting output is "Thank you for using the Operator Administrative Tool." being displayed. Can anyone tell me... (2 Replies)
Discussion started by: warlock129
2 Replies

10. Solaris

Variable Substitution Issue

#!/bin/ksh VAR_ONE=HELLO TEMP=ONE echo $VAR_${TEMP} ## Output is: ONE Hi, I want the output to echo HELLO and not ONE as the above script does. I know I am missing something with dollar substitution. Can anyone help me out ? Thanks. Cal (4 Replies)
Discussion started by: calredd
4 Replies
Login or Register to Ask a Question
DITRACK(1)						      General Commands Manual							DITRACK(1)

NAME
dt - DITrack command line client tool SYNOPSIS
dt command [options] [args] dt-createdb repository-url issue-db-dir local-wc dt-upgrade-0.7-db issue-db-dir OVERVIEW
DITrack is a free, open source, lightweight, distributed issue (bug, defect, ticket) tracking system using a Subversion repository instead of a backend database. It is written in Python and runs in UNIX environment (*BSD, Linux, MacOS X). The project is inspired by the idea of Subissue issue tracking system. However, while Subissue aims in merely replacing the traditional database storage with Subversion repository, DITrack is a major rethought of the issue tracking system paradigm. The main difference is that instead of sticking to the centralized model (one database, one web interface, one mail integration machinery), DITrack treats underlying Subversion storage as a versioned distributed file system which enables benefits of truly distributed operation mode. For more information about the DITrack project, visit http://www.ditrack.org. Documentation for DITrack and its tools, including detailed usage explanations of the dt and dt-createdb programs, can be found at /usr/share/doc/ditrack/html/index.html. Run `dt help' to access the built-in tool documentation. Automatic upgrade is possible for databases created by DITrack 0.7. If you are upgrading from previous version of DITrack, use the upgrage utility from DITrack 0.7 first. To upgrade a database run the dt-upgrade-0.7-db script, passing the database path as the argument, like: dt-upgrade-0.7-db /home/user/ditrack-database The upgrade procedure merely modifies the working copy (nothing gets committed to the repository). So, when done, you should commit the changes manually. April 2007 DITRACK(1)