Solved

Awk scripts

Posted on 2000-04-12
3
214 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
  • 3
3 Comments
 
LVL 20

Expert Comment

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

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 20

Accepted Solution

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

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
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 get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
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.:

807 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