Search:

Type: Posts; User: thegodfaza; Keyword(s):

Page 1 of 4 1 2 3 4

Search: Search took 0.06 seconds.

  1. Replies
    8
    Views
    1,006

    Re: [BASH] Multiple Commands At Once

    Well it's been four days and I've been messing around with some more related scripts. It seems the problem is, as I had guessed, that handbrake is outputting it's status updates in a way that I can't...
  2. Replies
    8
    Views
    1,006

    Re: [BASH] Multiple Commands At Once

    I've also tried using read but it doesn't seem to work either. Script locks up once it gets to the read line.

    while true
    do
    if read -u 3 text
    then
    RUNNING=$(kill -0 $PID &> /dev/null;echo...
  3. Replies
    8
    Views
    1,006

    Re: [BASH] Multiple Commands At Once

    OK, now it's mostly working. I start the transcode as a background process and send it's output into a named pipe. And outside the script I can read the contents of the named pipe by using "cat...
  4. Replies
    8
    Views
    1,006

    Re: [BASH] Multiple Commands At Once

    I need to do this in a single script. Would this still be possible? Also after the conversion is finished the script needs to continue to update database entries. How would I detect when the...
  5. Replies
    8
    Views
    1,006

    Re: [BASH] Multiple Commands At Once

    The question is stated implicitly. How would one accomplish this task?
  6. Replies
    8
    Views
    1,006

    [BASH] Multiple Commands At Once

    I'm building a myhttv transcode script and it's now working correctly, but I want to see the progress through the WebUI. To update the progress, a table has to be modified in the mysql database. So I...
  7. Replies
    6
    Views
    1,209

    [all variants] Re: Single Use SSH-RSA Keys

    Was hoping for some automated system but I guess I can just write a bash script. Thanks for the help.
  8. Replies
    6
    Views
    1,209

    [all variants] Single Use SSH-RSA Keys

    My primary Ubuntu server has SSH exposed to the internet so I can remotely access it. I have configured OpenSSH to use only RSA key authentication. Each computer I use has a separate RSA key unique...
  9. [ubuntu] Re: PHP pages downloaded instead of interpreted

    Hope you get it working. The fun of linux where everything looks right but it just won't work.
  10. [ubuntu] Re: PHP pages downloaded instead of interpreted

    Well everything looks right. I don't know why it wont work. I suppose you could try reinstalling php.

    sudo apt-get purge php5
    sudo apt-get autoremove
    sudo apt-get install php5...
  11. [ubuntu] Re: PHP pages downloaded instead of interpreted

    If you go to their site, http://syrinxoon.net/, you get the raw php. That would be an amazing bug if it let you download any websites raw PHP.

    EDIT: Are you sure you set the execute flag on the...
  12. [ubuntu] Re: PHP pages downloaded instead of interpreted

    You can try adding this to your config:

    AddType application/x-httpd-php .php

    I had this happen a while back on 10.04 before I upgraded my server to 10.10. Everything I tried didn't work until I...
  13. [ubuntu] Re: PHP pages downloaded instead of interpreted

    There's the problem. In order for php to execute the php files they need to have the executable flag. A security warning though, only mark things that need to be executable with the execute flag. To...
  14. [ubuntu] Re: PHP pages downloaded instead of interpreted

    I edited my last post before you posted. Can you check to make sure that the php files your trying to execute have the execute flag. Do a "ls -la /dir/to/the/php/file/dir" and post the output.
  15. [ubuntu] Re: PHP pages downloaded instead of interpreted

    Can you post your virtual server's config file. Should be /etc/apache2/sites-available/default-000 or default.
    EDIT: Doh, just remembered. Did you set the php files that your trying to execute to...
  16. [ubuntu] Re: PHP pages downloaded instead of interpreted

    Can you post the output of:

    dpkg -l | grep php
  17. [ubuntu] Re: PHP pages downloaded instead of interpreted

    I guess apache didn't make a symlink for you. If you want you can make your own by running these commands:

    cd /usr/sbin
    sudo ln -s apache2ctl apachectl

    Having the symlink would be useful if...
  18. [ubuntu] Re: PHP pages downloaded instead of interpreted

    Well that seems a bit odd. What is the output of:

    ls -la /usr/sbin | grep apache

    Should be similar to:

    justin@singularity-vm:~$ ls -la /usr/sbin | grep apache
    lrwxrwxrwx 1 root root ...
  19. Replies
    1
    Views
    1,832

    [ubuntu] ProFTPd Virtual Server Issues

    I'm trying to setup ProFTPd on my server with it's virtual servers and authenticating using ONLY MySQL. The configuration I'm using right now works perfectly as long as I ONLY use the default server...
  20. [ubuntu] Re: PHP pages downloaded instead of interpreted

    Can you post the output of:

    apachectl -t -D DUMP_MODULES | grep php
  21. Replies
    9
    Views
    624

    [ubuntu] Re: Bash and white spaces

    Thanks for the help. I don't understand though why BASH decides to think of spaces as new lines instead of a space.
  22. Replies
    9
    Views
    624

    [ubuntu] Re: Bash and white spaces

    So anyone have any idea why a bash script would treat spaces as new lines?
  23. Replies
    9
    Views
    624

    [ubuntu] Re: Bash and white spaces

    For some reason that doesn't work either. This script is just a segment from a larger script. I debugged the problem down to this section so while using that command by it's self works, for some...
  24. Replies
    9
    Views
    624

    [ubuntu] Re: Bash and white spaces

    Even if I remove grep from the search and display ALL files using 'find "$CDIR"', I still get the spaces in file paths being interpreted as new lines.
  25. Replies
    9
    Views
    624

    [ubuntu] Bash and white spaces

    I've been googling for a while and can't get this script to work. I'm trying to search a directory for specific file types then print a list of all matching files, one per line. But the script is...
Results 1 to 25 of 98
Page 1 of 4 1 2 3 4