The UNIX and Linux Forums  


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
execute bkan77 Shell Programming and Scripting 3 07-20-2007 02:42 PM
script execute or no execute Kespinoza97 Shell Programming and Scripting 4 06-23-2007 10:27 AM
How can I do a rexec to execute un C exe ? Lika Shell Programming and Scripting 4 02-22-2007 10:17 AM
Need to execute 2 scripts, wait, execute 2 more wait, till end of file halo98 Shell Programming and Scripting 1 08-01-2006 05:42 PM
Can't execute a script ssmiths001 Shell Programming and Scripting 3 06-02-2006 06:50 PM

Closed Thread
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
  #1 (permalink)  
Old 12-06-2007
tyger52 tyger52 is offline
Registered User
  
 

Join Date: Dec 2007
Location: So. Cal
Posts: 1
Smile awk and execute app

Ahoy,
New to Ksh and Perl. Spent days googling and trying things before finding this site. Search this site for solution. What I want is to automate the typing of a command on a HPUX 11 server. The command is particular to Perforce and their excellent tech support suggested I do this in Perl.

Tried Perl but think I need to install a pm for Perforce which the sys admin of the server won't like. So then I tried ksh. I have a long list of branches (stored as a list of single words in a file called p4branch.txt) in Perforce to delete and I got a short test list to just print, but then I get nothing when I try it using the perforce (p4) command. No error. Just nothing.

The command (p4 branch -d -f branchname) works when I type it in a terminal window.
Code:
awk '{p4 branch -d -f $1}' p4branch.txt

Thanks for any insight!
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 07:10 AM.


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