The UNIX and Linux Forums
Forum Home
Linux and Unix Man Pages
Search Forums
Search Community Posts
Today's Posts
Quick Links
Man Pages
RedHat Commands
OpenSolaris Commands
Linux Commands
SunOS Commands
FreeBSD Commands
All UNIX Man Pages
All Linux Man Pages
Full Man Repository
Login or Register to Ask a Question and Join Our Community
Search Forums
Show Threads .
Show Posts
Tag Search
Advanced Search
Quick Links
Contact Us
Forum Rules
Today's Posts
FAQ
Pictures & Albums
All Albums
Miscellaneous
What is My IP
Whois
Mark Forums Read
Search Results
Showing results 1 to 8 of 8
Search took
0.00
seconds.
Search:
Posts Made By:
fzivkovi
Forum:
Ubuntu
07-22-2014
5
Bash to ash port, character-matching problem
4,213
Posted By
fzivkovi
Bash to ash port, character-matching problem
I'm trying to convert this working bash script into an Ash script,
read -p "Username:" _username
if ! [[ "$_username" =~ [^a-zA-Z0-9] ]]; then
echo "Valid"
else
echo...
Forum:
Ubuntu
07-02-2014
6
Dont Allow Exitting from a Script
2,715
Posted By
fzivkovi
still trying
Thank you everyone who responded, I'm going through in no particular order.
I would be very interested to do this:
"It is quite possible to specify a shell script (or other application program)...
Forum:
Ubuntu
06-27-2014
6
Dont Allow Exitting from a Script
2,715
Posted By
fzivkovi
Dont Allow Exitting from a Script
Hello,
I wrote a script and disabled Ctrl+C using
trap ' ' 2
For security, I cannot allow users to exit the script on their own for then they would have access to the command prompt. Are...
Forum:
Ubuntu
06-26-2014
7
Bash to Ash, errors and adjustments
6,934
Posted By
fzivkovi
Thank you! It worked like a charm.
Thank you! It worked like a charm.
Forum:
Ubuntu
06-26-2014
7
Bash to Ash, errors and adjustments
6,934
Posted By
fzivkovi
How do you make it so that, for the case...
How do you make it so that, for the case statement, the user doesn't have to press 'enter'. I want it to be as soon as they press "1", for example, they're taken to that menu.
Tricky details..
Forum:
Ubuntu
06-24-2014
7
Bash to Ash, errors and adjustments
6,934
Posted By
fzivkovi
Thank you Scott, your code worked without any...
Thank you Scott, your code worked without any modification. I'm still new to scripting.
Forum:
Ubuntu
06-24-2014
7
Bash to Ash, errors and adjustments
6,934
Posted By
fzivkovi
Thanks in helping me out. The do statement...
Thanks in helping me out.
The do statement needs the following syntax:
while ...
do ...
done ...
I didn't have a "while" section to it when I was using Bash, and the command prompt just...
Forum:
Ubuntu
06-23-2014
7
Bash to Ash, errors and adjustments
6,934
Posted By
fzivkovi
Bash to Ash, errors and adjustments
I wrote Bash script and now I want to convert it to Ash. One headache is this function:
do_adduser() {
setaddprompt
_arr_add=("Add manually" "Add via TXT" "return to main menu" "exit...
Showing results 1 to 8 of 8
Member Badges and Information Modal
×