Search Results

Search: Posts Made By: Lorna
2,281
Posted By Lorna
TCL, how to
Does any one know how to capture the output of command called from a TCL script?

I cannot figure this out. I've been working on it for 4 hours now :confused:
4,097
Posted By Lorna
Sorry for the confusion. I mean last token in...
Sorry for the confusion.
I mean last token in the line.

Thank you so much jim for the code.
4,097
Posted By Lorna
Thanks you I did : scriptname | tail...
Thanks you
I did :
scriptname | tail -1>>newfile.dat

but what gets copied to newfile.dat is that last line, instead of the last string in the last line
4,097
Posted By Lorna
capture output of file and send last string thereof to new file
Hello,

If I run a program from within shell, the output is displayed in the command line terminal. Is there a way I can capture that output and choose only the very last string in it to send it to...
4,141
Posted By Lorna
Thanks so much!! Now that I realized when the...
Thanks so much!! Now that I realized when the echo is executed, it works !!!
Thanks again :)
4,141
Posted By Lorna
Ok let me try to rephrase my question The...
Ok let me try to rephrase my question

The program s2 can be run in command line by typing:

>s2 param1=val1 param2=val2
>enter value of param3: val3
>enter value of param4[2000] ;return...
4,141
Posted By Lorna
Please help me decide if I'm doing the write...
Please help me decide if I'm doing the write thing by writing a "shell script" to automate running this program that I can run from my command line with no problem. I've tried all your suggestions...
4,141
Posted By Lorna
Ok. I just found out that s2 is prolly written in...
Ok. I just found out that s2 is prolly written in fortran because there are files on my machine as s2.f and s2.o
is it possible to call it from my script at all?
4,141
Posted By Lorna
Subhendu Actually I tried that before and it...
Subhendu

Actually I tried that before and it didn't work either
I don't know the extention of s2. All I know that it's an executable now :(

Help
4,141
Posted By Lorna
Oh I'm sorry I am trying to write a script...
Oh I'm sorry

I am trying to write a script (s1.sh) which calls another script that I didn't write (s2).

Usually I run s2 from the command line as:

> s2 param1=val1 param2=val2 param3=val3
...
4,141
Posted By Lorna
calling a program (w/ params) from within shell
Hi all,

I need to call some script (s1) from within my shell script (s2). s1 accepts parameters and I want to feed it with values of params from my script. I tried many things but none work (I am...
4,343
Posted By Lorna
Thank you so much, that's very helpful!!
Thank you so much, that's very helpful!!
4,343
Posted By Lorna
Read from file > process > output to file
Hi all,

OK, I am totally new to shell scripting as I just started today. All I want from shell scripting is something very basic, and I've been searching for tutorials on "processing files" and I...
Showing results 1 to 13 of 13

 
All times are GMT -4. The time now is 09:37 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy