Mandriva Expert
The place where your Mandriva Linux system finds support

Redirect in script

+/- details
User javiermarcon
Incident Number 71294
Date 2003/10/01 18:22
Status Incident closed
Paid No

Product 9.1 (Bamboo)
Architecture x86_32
Scope Administration

Products owned
Community Support question - to convert into a paid question, click here

Lines in bold below have not yet been seen by the customer - those in blue are from the customer

Username : Date : Action : Comments [ close all ]    
 
javiermarcon : 01/10/03 06:22 PM : Incident created
-   Hello, if I execute the command echo 'pepe' >> pepe.txt in bash, it puts me 'pepe' at the end of pepe.txt, but if I put that command in a bash script, it doesn't work. How do I solve it?

Thanks.

 
Linegod_7611 : 01/10/03 06:49 PM : Reply received
-   It should work fine. Could you post your script?

I created a simple file called 'test' with the following content:

#!/bin/bash
echo 'pepe'>>pepe.txt

Then did:

# chmod 775 test
# ./test

---------------
Note: If this answer resolves your problem, please remember to close this
incident.

 
 
javiermarcon : 02/10/03 04:31 PM : Incident closed
-  



This Incident is closed. It can not be edited anymore. You can create a new one by signing up/logging in your Mandriva Expert account.

  Mandriva  |  Contact  |  Legal  |  Privacy  |  Careers