473,401 Members | 2,146 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,401 software developers and data experts.

view file using shell scripting

ilikesuresh
Hi,
My requirement is to view the certain file from unix shell(korn).
What i did is
Expand|Select|Wrap|Line Numbers
  1. $SQLPLUS -S $sql_user_name/$sql_user_pwd@$sql_service
  2. exec emp_history();
  3. commit;
  4. .
  5. .
  6. .
  7. vi /suresh/emp_his.txt
  8.  
After executing the procedure,the procedure is updating certain things in to a file.I want to see this updation with out quiting the program.Then finally the control will come to our program.
Dec 26 '07 #1
1 2987
numberwhun
3,509 Expert Mod 2GB
Hi,
My requirement is to view the certain file from unix shell(korn).
What i did is
Expand|Select|Wrap|Line Numbers
  1. $SQLPLUS -S $sql_user_name/$sql_user_pwd@$sql_service
  2. exec emp_history();
  3. commit;
  4. .
  5. .
  6. .
  7. vi /suresh/emp_his.txt
  8.  
After executing the procedure,the procedure is updating certain things in to a file.I want to see this updation with out quiting the program.Then finally the control will come to our program.
Well, you don't need a script to view a file. And, how are you going to view the file if the script is opening it? I don't think that putting "vi ....." into a shell script will really do anything as how are you going to navigate the file and exit it? Vi is interactive with the user, not a script.

Also, you say you want to see the updates to the file (updation really isn't a word, see your spell checking). What are you expecting to see if you don't want the file quoted?

Regards,

Jeff
Dec 26 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: Limey Drink | last post by:
Hi all, Firstly :-) , is there any where I can search through archived newsgroup posts so I am not cluttering up the newsgroup with repeated queries ? And secondly :-), I know this has...
3
by: David B | last post by:
I have this code to find a file, place it in C:\ temp, zip it up then send it to floppy in drive A:\. When I run it it comes up with error 53 - source file not found. However it gets as far as...
4
by: korund | last post by:
Is there any difference to read & write to windows Registry with VBScript or JavaScript? Both scripting languages have similar syntax. What is preferable use for this? thanks.
13
by: Ray Muforosky | last post by:
Hello all: Task: I want to do file search, using the "conatining text" option from a web page. How do I search for a file on my local drive containing a certain string, from a web page. That...
7
by: Frank Potter | last post by:
I learned some python in windows. And now I've turned to linux. I read a book and it teaches how to write shell script with bash, but I don't feel like the grammar of bash. Since I know about...
7
by: Mark | last post by:
Good evening all, using a XP pro platform and Access 2003 SP2, is it possible to identify a .zip file, inflate the file and then import the contents? I'm pretty certain I could code steps 1 & 3...
2
AnuSumesh
by: AnuSumesh | last post by:
Hi I m new to ASP 'n' this forum also. I m writing one code to invoke remote desktop service for given IP address. For that i m using mstsc.exe file to invoke RDP. I have a no of links to be...
2
by: LayneMitch via WebmasterKB.com | last post by:
Hello. I posted this earlier with the full code of the JavaScript file I'm trying to open. I'm posting this again, because the file is not the problem. I seem to be having a 'windows' problem...
6
by: raymond_b_jimenez | last post by:
I need to download a file from an Intranet web site and feed it into a program on the PC where the browser is running. Browser is Internet Explorer. Both Javascript and VBscript are options. Which...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.