Find the answer to your Linux question:
Results 1 to 4 of 4
Hi, can anyone help me with a script problem that was given to me - what I am using is cygwin the emulator to replace the whole Linux O/S. Here ...
  1. #1
    Just Joined!
    Join Date
    Oct 2008
    Posts
    2

    New to Linux environment - script help?

    Hi, can anyone help me with a script problem that was given to me -
    what I am using is cygwin the emulator to replace the whole Linux O/S.

    Here is the problem.
    Create a script that will produce a text file that has a list of the files in the present working directory.
    At the end auto execution from the command prompt should be able to be performed.

    The only thing what I know how to start the coding part is
    #!bin/bash

    and that's it. One hint that i got was to use the the redirection operators e.g. ">"

    Can anyone help me out please?
    I would really appreciate it.
    Thank you.

  2. #2
    oz
    oz is offline
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,096
    Welcome to the forums!

    This looks like it might be a homework question.

    Here are a couple of good sites for writing your own scripts:

    LinuxCommand.org: Writing shell scripts.

    Linux Shell Scripting Tutorial - A Beginner's handbook

    Hope one or both of them helps to get you started.

    Let us know how it goes.
    oz

    new members/users: read this first | new member faq
    no private messages requesting computer support - post them on the forums!
    please use the "report post" button to alert our forum admins to problematic posts rather than responding to them yourself.

  3. #3
    Just Joined!
    Join Date
    Oct 2008
    Posts
    2
    yeah I went through both of those sites already prior to posting this thread but still don't hav a clue of how to do the codings.

  4. #4
    Linux Guru smolloy's Avatar
    Join Date
    Apr 2005
    Location
    CA, but from N.Ireland
    Posts
    2,413
    Sorry, but we prefer not to answer people's homework questions. If you make an effort, and are stuck at one small part, we might throw a couple of hints your way, but we're not gonna do it all for you!

    Sorry.
    Registered Linux user #388328 || Registered LFS user #15880
    AMD 64 X2 4600+ :: 2X1GB DDR2 800 :: GeForce 9400 GT 512MB :: ASUS M2N32 Deluxe :: 4X250GB SATAII
    Need instant help? Try us on IRC -- #linuxforums on freenode

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...