Solved

Awk scripts

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

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…
Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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.:

759 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now