?
Solved

Awk scripts

Posted on 2000-04-12
3
Medium Priority
?
220 Views
Last Modified: 2013-12-16
I am trying to use the 'adduser' command in an awk script and it won't work.  Is there a specific syntax I need to use so that awk will run this Unix command or what?  Thank you.

0
Comment
Question by:tranders
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
3 Comments
 
LVL 21

Expert Comment

by:tfewster
ID: 2740721
awk can't run Unix commands, but nawk can, with the system(command) function.
0
 
LVL 21

Expert Comment

by:tfewster
ID: 2785895
As you haven't responded, I'll assume my comment helped you resolve the problem :)

Incidentally, I found that awk on some Unices CAN execute shell commands - which Unix are you using?
0
 
LVL 21

Accepted Solution

by:
tfewster earned 200 total points
ID: 2814938
See comment trail
0

Featured Post

Enroll in August's Course of the Month

August's CompTIA IT Fundamentals course includes 19 hours of basic computer principle modules and prepares you for the certification exam. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In tuning file systems on the Solaris Operating System, changing some parameters of a file system usually destroys the data on it. For instance, changing the cache segment block size in the volume of a T3 requires that you delete the existing volu…
This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Suggested Courses
Course of the Month15 days, 6 hours left to enroll

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question