Go Back   Linux Forums by TotalPenguin! Get linux Help! > GUI Linux > Linux Programming and Scripting

Linux Programming and Scripting Discussion for Linux Programming and scripting (including Perl, PHP, C, C++, and other languages)

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-18-2008, 04:01 PM
Senior Member
 
Join Date: Jan 2007
Posts: 109
Hektor is on a distinguished road
Default Log a script contents

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.

Code:
# ftpupload.sh
That is how it is executed. Any ideas?
Reply With Quote

Sponsored Links
  #2 (permalink)  
Old 11-10-2008, 02:58 PM
Member
 
Join Date: Jul 2008
Posts: 61
tecktalk is on a distinguished road
Default

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..
Reply With Quote
  #3 (permalink)  
Old 11-12-2008, 01:03 PM
Jordan's Avatar
Administrator
 
Join Date: Nov 2006
Posts: 572
Jordan will become famous soon enough
Default

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:

Code:
# ftpupload.sh > myFile.txt
Reply With Quote
  #4 (permalink)  
Old 11-18-2008, 02:31 PM
Senior Member
 
Join Date: Jan 2007
Posts: 109
Hektor is on a distinguished road
Default

That works although I would like to do it with having to cat a file. Any ideas?
Reply With Quote
Reply

Tags
log files, logs

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using colors in Shell Script ptt3 Linux Programming and Scripting 1 04-03-2008 12:50 PM
FTP Script ptt3 Linux Programming and Scripting 1 04-02-2008 06:54 PM


All times are GMT. The time now is 12:52 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.