I have this command if (!system("adduser $username -g 100 -s /bin/false -d /home/$username -p $encrypted_pass -e $expiry_date -c $realname")) { But because $realname can contain spaces it needs to be passed to adduser as -c "my real name is bob", rather than -c my real name is bob.
I cant put " " round the $realname as this doesn't work. Any ideas how to rewrite this?
Cheers
In reply to Running System Commands With "" by lostperls
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |