Jump to content

Log a script contents

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
3 replies to this topic

#1
Hektor

Hektor

    Programmer

  • Members
  • PipPipPipPip
  • 126 posts
I have an FTP script but I can't actually see it being executed. What can I do to see if/how it works? I want the output placed in a file I suppose.


# ftpupload.sh


That is how it is executed. Any ideas?

#2
tecktalk

tecktalk

    Programmer

  • Members
  • PipPipPipPip
  • 175 posts
you can mention it in the script if you wish to see the work done by the script..
Just place the processes executed in a text file.. so simple..
Lyf come without guarantees, except that smiling will brighten ur face, laughing will enhance ur eyes, and falling in luv will change ur lyf

#3
Guest_Jordan_*

Guest_Jordan_*
  • Guests
I don't really understand the question. How can you not see it working but want to pipe the output to a file also? If it doesn't display any output to the console you won't be able to pipe it to a file. Here is how you would pipe to a file though:

# ftpupload.sh > myFile.txt


#4
Hektor

Hektor

    Programmer

  • Members
  • PipPipPipPip
  • 126 posts
That works although I would like to do it with having to cat a file. Any ideas?