Solved

Awk scripts

Posted on 2000-04-12
3
213 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
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.:
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

809 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