Find the answer to your Linux question:
Results 1 to 4 of 4
I need to trace the actions that are performed by my .cshrc file. Is there a command i can use to get a printout of this?...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    May 2011
    Posts
    4

    .cshrc help tracing


    I need to trace the actions that are performed by my .cshrc file. Is there a command i can use to get a printout of this?

  2. #2
    Linux Engineer Kloschüssel's Avatar
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    773
    Code:
    $ vim ~/.cshrc
    You can choose your favorite editor (nano, less, emacss, ..) in place for vim.

  3. #3
    Just Joined!
    Join Date
    May 2011
    Posts
    4
    thanks, i guess i shouldve been more specific. I needed something that traced the azctions performed and additional files that were sourced. I ended up running this:

    script
    set echo
    source .cshrc
    ctrl-d (to exit)

    Anybody know of an easier way or more effective way?

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Engineer Kloschüssel's Avatar
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    773
    Google's your best friend:

    HowTo: Debug a Shell Script Under Linux or UNIX

    Maybe you're able to apply the bash way to csh?

    Good luck!

Posting Permissions

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