Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Awk scripts

Posted on 2000-04-12
3
Medium Priority
?
221 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
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…
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.:
Suggested Courses

604 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