Jump to content

sys_tem(); ... a difficult problem


jcink

Recommended Posts

Hi,

I currently have an issue with the sys_tem(); command.

My problem is that I need system to be able to "reply" to the response of this command:
sys_tem("pure-pw useradd username -u ftpuser -g ftpgroup -d /var/www/s/host/username -N 200");

What this is, exactly, is a Pure-FTPd command line that adds a user in. The issue that when you do it, it then asks for password to be typed twice before adding.

"Passwrd: " is outputted on the page. I don't know of a way to reply to that. I tried after that:

sys_tem("testpassword");
sys_tem("testpassword");

The next two sys_tems seem to just open up brand new windows, doing nothing. Is there any way to continue the sys_tem(); if you get what I mean?

Thanks in advance,
jcink

edit: I know it isn't called sys_tem but if you try to post with that word in your post you get blocked!!!! >=(
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.