Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 05-04-2012
Registered User
 
Join Date: May 2012
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
TWO QUESTIONS...How to create your own command in UNIX server,How to enter data in a file by script

I am a quite newbie on UNIX SCRIPTING...Please help me solving this two questions...

1st Question;
I want to create one command that will run a script when anyone use that command on that server... I mean, in the prompt if I put my name 'Rony' it will execute a script called 'rony.sh'. How can I do that.. Please suggest...

2nd Question;
I need one script that will ask the user to enter some data and that script will store the data in one file...

Moderator's Comments:
Please repost your question in Homework Forums

Last edited by jim mcnamara; 05-04-2012 at 09:34 PM..
Sponsored Links
    #2  
Old 05-04-2012
balajesuri's Avatar
#! /bin/bash
 
Join Date: Apr 2009
Location: India
Posts: 1,559
Thanks: 14
Thanked 437 Times in 422 Posts
Is it homework? There's a separate forum for that. Check this link before posting.
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Need help in writing a script to create a new text file with specific data from existing two files shashi143ibm Shell Programming and Scripting 1 08-06-2010 03:48 AM
Enter data at end of a file tintin72 UNIX for Dummies Questions & Answers 3 01-01-2010 10:52 AM
Create a file and enter data in columns abhijeet1409 UNIX for Advanced & Expert Users 1 03-24-2009 09:44 AM
Exit script if the user dosent enter any data within 5 seconds frozensmilz Shell Programming and Scripting 3 03-18-2009 03:30 AM



All times are GMT -4. The time now is 10:08 AM.