Search Results

Search: Posts Made By: fzivkovi
Forum: Ubuntu 07-22-2014
3,753
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
2,575
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
2,575
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
6,276
Posted By fzivkovi
Thank you! It worked like a charm.
Thank you! It worked like a charm.
Forum: Ubuntu 06-26-2014
6,276
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
6,276
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
6,276
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
6,276
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

 
All times are GMT -4. The time now is 08:40 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy