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 > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
[PERL] Running unix commands within Perl Scripts userix Shell Programming and Scripting 1 05-28-2008 06:06 PM
Include PERL script with in the unix shell script ganapati UNIX for Dummies Questions & Answers 1 04-29-2008 12:18 PM
saving from unix into pc alikun UNIX for Dummies Questions & Answers 6 03-28-2007 02:03 AM
Saving to a floppy umether UNIX for Dummies Questions & Answers 1 08-26-2005 05:59 PM
Saving of UNIX based e-mail on to local disks rajan9 UNIX for Advanced & Expert Users 4 08-07-2002 01:49 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 06-18-2001
hagrid hagrid is offline
Registered User
  
 

Join Date: Jun 2001
Location: ok
Posts: 2
Saving Perl scrpits in a UNIX Shell

Hey, i am really new to Perl and UNIX, all i need to know how to know how to save scripts in UNIX? after i get done writing the script i type the command chmod 755 filename, but it I think the shell thinks that is a part of the script, i dont know if i am supposed to type in a save command or somethign before i type the chmod?
  #2 (permalink)  
Old 06-19-2001
mib mib is offline
Registered User
  
 

Join Date: Jan 2001
Location: Calicut
Posts: 228
Which tool you using to write the script?

if it is cat press 'Ctrl+d'
vi press 'Esc' then type :wq
pico 'Ctrl+x'
emacs 'Ctrl+x'

then chmod +x 755

to run the script:

./scriptname




HTH
  #3 (permalink)  
Old 06-19-2001
hagrid hagrid is offline
Registered User
  
 

Join Date: Jun 2001
Location: ok
Posts: 2
im using pico, i already figured it out though, thanx
  #4 (permalink)  
Old 06-21-2001
ignus ignus is offline
Registered User
  
 

Join Date: Jun 2001
Posts: 2
What I would do is open up vi and hit escape a couple of times, then type :r and the name of the hopefully saved perl script. Then hit enter. Press colon and type wq. Then do chmod 700 filename. After that simply type in the name of the script. I think that will work.
Closed Thread

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 08:24 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