The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
script command udi Shell Programming and Scripting 2 09-19-2008 05:15 PM
cd command in a script Rajat UNIX for Dummies Questions & Answers 1 07-10-2008 02:06 PM
Q: Recording shell script screen output using "script" command ? lalfonso.gomez Shell Programming and Scripting 4 01-18-2007 09:31 PM
reg script command.... deep UNIX for Dummies Questions & Answers 7 03-30-2005 12:22 PM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 09-19-2008
mat_tarant mat_tarant is offline
Registered User
  
 

Join Date: Sep 2008
Posts: 3
script command help

Hi,

Hope you guys can help me here. I made a shell script that will automatically telnet to our switches, execute some commands and then logout. All of the activities are recorded with the use of script and it is saved on another file. Everything is working fine when i run the shell script.

My problem is when i try to run it on a web based application (e.g. php) it prompts me to open the file or doesn't run at all using another browser.

here is how the php file looks like:

<?

$test = system ("script -c ./test.sh");

?>

Hoping to hear from you guys, thanks in advance
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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




All times are GMT -4. The time now is 04:59 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0