Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19
Reading variables...
Results 1 to 2 of 2

Thread: Reading variables...

  1. #1

    Reading variables...

    I am having a problem with variables that I cannot figure out. If I define a variable as PrepUpdates=/tmp/PrepUpdates, and then assign a value --> grep Start PREP.LOG | tail -1 > $PrepUpdates, when I echo $PrepUpdates, all that is returned is /tmp/PrepUpdates.

    I have verified that the variable has a value assigned to it in the temp directory, I just can't seem to use that value throughout the script. Any help would be greatly appreciated.

    Thanks

  2. #2
    Senior Member
    Join Date
    May 2004
    Location
    Pakistan
    Posts
    253

    Re: Reading variables...

    Dear Gary Penner,
    Hello,

    Quote Originally Posted by Gary Penner
    I am having a problem with variables that I cannot figure out. If I define a variable as PrepUpdates=/tmp/PrepUpdates, and then assign a value --> grep Start PREP.LOG | tail -1 > $PrepUpdates, when I echo $PrepUpdates, all that is returned is /tmp/PrepUpdates.
    Yes, its becacuse you assign file name in $PrepUpdates and when you apply this command

    # grep Start PREP.LOG | tail -1 > $PrepUpdates

    It will only update this file which is /tmp/PrepUpdates

    Best Regards.
    Frrkh hmd

Similar Threads

  1. dns - variables
    By 4ever in forum Linux - Hardware, Networking & Security
    Replies: 1
    Last Post: 02-02-2009, 09:32 PM
  2. What are you reading?
    By halfpipe10 in forum General Chat
    Replies: 2
    Last Post: 02-11-2006, 03:33 AM
  3. CD-ROM reading
    By dgwebstuff in forum Linux - General Topics
    Replies: 11
    Last Post: 05-24-2002, 03:10 AM
  4. PHP variables
    By kornp in forum Linux - Hardware, Networking & Security
    Replies: 7
    Last Post: 05-15-2002, 03:29 PM
  5. Environment variables... where should they go?
    By krupa in forum Linux - General Topics
    Replies: 5
    Last Post: 11-27-2001, 03:14 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •