User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Shell Scripting section within the Software Development category of DaniWeb, a massive community of 456,418 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,635 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Shell Scripting advertiser: Programming Forums
Views: 1460 | Replies: 4
Reply
Join Date: Apr 2007
Posts: 3
Reputation: ryanokc is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
ryanokc ryanokc is offline Offline
Newbie Poster

Need help in Shell script

  #1  
Apr 6th, 2007
1) I need to create a simple bash shell script that will promt the admin for a user name and then create the user account and change password... thx a lot......
AddThis Social Bookmark Button
Reply With Quote  
Join Date: May 2006
Location: Bellevue, WA
Posts: 1,548
Reputation: Infarction has a spectacular aura about Infarction has a spectacular aura about Infarction has a spectacular aura about 
Rep Power: 8
Solved Threads: 51
Sponsor
Infarction's Avatar
Infarction Infarction is offline Offline
Battle Programmer

Re: Need help in Shell script

  #2  
Apr 6th, 2007
Well, we won't simply hand it to you. What have you tried? What code are you currently working with?
Reply With Quote  
Join Date: Apr 2007
Posts: 3
Reputation: ryanokc is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
ryanokc ryanokc is offline Offline
Newbie Poster

Re: Need help in Shell script

  #3  
Apr 7th, 2007
Originally Posted by Infarction View Post
Well, we won't simply hand it to you. What have you tried? What code are you currently working with?



very new here that's why no idea how to start... by the way may i know u know WML?

I wish to write a script that replays every other letter of that word with asterisk and reverse the order of the work. below r my code.
and it not working...

<wml>
<card id="card1"title="INPUT">
<onevent type="onenterforward">
<go href="reverse.wmls#reverse()"/>
<refresh>
<setvar word="words" value=""/>
</refresh>
</p>
</card>

<card id="card2" title="OUTPUT">
<p>
input the wordresult1
</p>
<p>
The result are $result2 and $result3
</p>
</card>
</wml>


extern function reverse(){
var a;
var b;
var word=Dialogs.prompt("Input the word:","");
var word2="";
var word3="";
var word4=String.charAt(word,0);
for(var i=String.length(word)-1;i>=0;i++){
a=String.charAt(word,i);
word2=word2+a;
}

for(var i2=1;i2<=String.length(word)-1;i2--){
b="*";
word3=word3+b;
}

WMLBrowser.setVar( "result1",word);
WMLBrowser.setVar( "result2",word4+word3);
WMLBrowser.setVar( "result3",word2);
WMLBrowser.go( "#card2" );
}
Reply With Quote  
Join Date: May 2006
Location: Bellevue, WA
Posts: 1,548
Reputation: Infarction has a spectacular aura about Infarction has a spectacular aura about Infarction has a spectacular aura about 
Rep Power: 8
Solved Threads: 51
Sponsor
Infarction's Avatar
Infarction Infarction is offline Offline
Battle Programmer

Re: Need help in Shell script

  #4  
Apr 7th, 2007
I know nothing about WML. Sorry.
Reply With Quote  
Join Date: Feb 2007
Location: Bangalore, India
Posts: 535
Reputation: thekashyap will become famous soon enough thekashyap will become famous soon enough 
Rep Power: 4
Solved Threads: 50
thekashyap's Avatar
thekashyap thekashyap is offline Offline
Posting Pro

Re: Need help in Shell script

  #5  
Apr 16th, 2007
This is the Shell Scripting forum..
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb Shell Scripting Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the Shell Scripting Forum

All times are GMT -4. The time now is 12:58 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC