Need some help with the SCRIPT

Need some help with the SCRIPT

Post by Sonny » Thu, 11 Jan 1996 04:00:00



I have some problem with my script..
the main problem is, HOW do i call out the second script within a script..
and how do i transfer the values??

THANKS in advance!!

below are the sample of my problems...

#This is the First Script *script1*
#!/bin/sh

tail -100f TESTDATA.file | gawk -F: '\
BEGIN{
        portused = 0;
     }
{

     time=$2

     for(i=1; i<=10; i++)
     {
             #call out second script...
             if(time = "test1")
                sprintf(cmd,"%s ",cmd, i);
                #i don't know if i can doing this or not...
                #but i need to transfer the values to the script2
                #and need to konw how to call out the script2 ??
     }

Quote:}

'

#This is the second Script *script2*
#!/bin/sh
shift
(
for i
do
        echo $1
        done

)

 
 
 

1. Need more help with setuid scripts

I have read a number of posts regarding setuid.  It seems that most
posts deal with the security risks when using setuid shell scripts
rather than a true step by step example of using it.  Security is not an
issue in this case. So the quickest solution would be the best solution.

I must be missing something as I can't get my setuid shell script to
work.

Here is what I need to do:  Create a script that includes an lpc stop
command.  lpc stop is a privilged command so you need to be root to
execute it.  The script will be run by daemon.  This is in Soalris 2.5.
I would rather avoid writing any c code and stay with just shell script
commands.

Any and all help would be greatly appreciated

2. Tecra 720 CDT Install

3. Need to help make a script

4. Intel EtherExpress Pro/100 connection freezing

5. need help converting sh scripts to csh scripts

6. TACAS for Linux

7. Need help, need to add new /etc/rc script

8. Help with IP MASQ (Redhat 7.2)

9. ksh scripted sed needs a control J - but I can't write the script!

10. Help needed with printers installation script

11. Need help with HPDJ720, printing script file and /etc/printcap

12. Need help with simple awk script

13. Need help with a complicated script.