Hi there,
I have a script that starts another script with 2 parameters that are read from a txt file by awk.
But somehow this line is ignored unter SunOS 5.7
If I replace system("..." with print "..." then the line is executed. I also have all the required right to the file add_printer_liste
Here is my script:
#!/bin/sh
awk '{
print " ";
print "***********************************************";
print "Host:"$1 " Queue: "$2;
system("add_printer_liste -h "$1" -q "$2);
}' drucker.txt
I have a script that starts another script with 2 parameters that are read from a txt file by awk.
But somehow this line is ignored unter SunOS 5.7
If I replace system("..." with print "..." then the line is executed. I also have all the required right to the file add_printer_liste
Here is my script:
#!/bin/sh
awk '{
print " ";
print "***********************************************";
print "Host:"$1 " Queue: "$2;
system("add_printer_liste -h "$1" -q "$2);
}' drucker.txt