Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: the command - system ( "source ./profile") not working

by f00li5h (Chaplain)
on Jan 10, 2008 at 09:38 UTC ( [id://661585]=note: print w/replies, xml ) Need Help??


in reply to the command - system ( "source ./profile") not working

source is a bourne builtin, it's not a real executable...

what are you actually trying to do here? even if it did source the contents of your .profile, the aliases/variables would belong to the sub-shell (the one that was spawned by system, and then terminated after reading execiuting the one operation you gave it)

Are you looking for some kind of config file for your script perhaps?

Updated grammar, and links

@_=qw; ask f00li5h to appear and remain for a moment of pretend better than a lifetime;;s;;@_[map hex,split'',B204316D8C2A4516DE];;y/05/os/&print;

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://661585]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (3)
As of 2024-09-07 18:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.