The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




Thread: Urgent help
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 01-29-2008
alokmits alokmits is offline
Registered User
  
 

Join Date: Jan 2008
Posts: 4
Exclamation Urgent help

I have wrote a simple shell script

BEGIN {
jobid = "test jobid"
printf(jobid)
printf("-----------------------------------")
# system("echo jobid")
system( "echo `echo $jobid`")
print "first print"

system ("echo echo system echo")
# system("sh /tmp/test aa abc aa1.rptx")
print "second print"
}

I want to display the value of jobid in system command but it is not displaying the value..Please advise me what to do its urgent????

thanx in advance