ssh/screen -- cmdline vs php

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hey guys..

I crafted a test php app to generate the test cmdline to ssh into the
remote box, attach to the screen, and fire off the testApp...

This works as expected from the cmdline...

I
   su - crawl_user,
 then run the cmd, take a look on another term, that's set to the
ipAddress. When I attach to the screen.. I see the app running..
Checking the procTbl shows the app running as well...

However....

when I run the cmd from a test php... using backticks.. the remote
ssh/screen/app isn't run...

Any pointers on what I can look at to debug this..

the actual cmd that works on the cmdline::

 ssh  -t crawl_user@162.243.166.31  "screen -r crawlSession  -X stuff
'/crawl_tmp/startCollegeCrawl_test_bycol.php   --crawlDir /crawl_tmp
--nfsDir /cloud_nfs  --nfsFetchDir /cloud_nfs_fetch  --colName
austincc_0'$(echo -ne '\015')  "



the test php that generates the above cmd...

    //--run the bycol for the college, using the ipAddress..
    $scmd="ssh  -t crawl_user@".$bycol_ip_list[$cnt].'  "screen -r
crawlSession  -X stuff ';
    $scmd=$scmd."'/crawl_tmp/startCollegeCrawl_test_bycol.php
--crawlDir /crawl_tmp  ";
    $scmd=$scmd."--nfsDir /cloud_nfs  --nfsFetchDir /cloud_nfs_fetch  ";
    $scmd=$scmd."--colName ".$d."'$(echo -ne '\\015')  ".'"';

    print "bycol cmd .. ".$scmd."\n";

    $scmd=`$scmd`;
    print " stop..bycol sleeping prior to starting..\n";
    exit();



thanks....
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux