Search Results

Search: Posts Made By: jacksona2
11,619
Posted By jacksona2
I got it to work
I was able to get it to work by doing this

exec("echo \". /opt/bell/apache2/htdocs/.profile;/opt/bell/apache2/htdocs/www/expecttest/connect.exp > /tmp/wrapper.out\" | at now ");

running in an...
11,619
Posted By jacksona2
I only turned on ssh for this box to test, but I...
I only turned on ssh for this box to test, but I am unfortunately many of our production devices are telnet. It appears that the expect buffer is not getting the "Username:" prompt eventhough the...
11,619
Posted By jacksona2
It is weird because it is actually connect to the...
It is weird because it is actually connect to the device. I can see from the debug output of expect that is get as far as connecting, but never sees the "Username:" prompt in the buffer

here is...
11,619
Posted By jacksona2
simple php/expect script works from command line but not from web
I have a really basic expect script which I call from php. I works fine when I run the php from the shell, but from the web it appears as if the output buffer gets chopped and never gets all of...
5,714
Posted By jacksona2
did you try the -mtime -1 option on find?
did you try the -mtime -1 option on find?
1,313
Posted By jacksona2
I am not really sure what you mean, you would...
I am not really sure what you mean, you would have to supply some sample code. You could just at you linking piece to the same function that does the testing so you do it all in one function.
...
1,313
Posted By jacksona2
You don't really need to right a function. Just...
You don't really need to right a function. Just using the shell built-in in variable $? for the return status of the last comman. In korn shell it would just be


ls -s $filename

if [[ $?...
3,959
Posted By jacksona2
I think there was an error in the prev post...
I think there was an error in the prev post Should be

#!/bin/sh
read -p 'Location? :' REPLY
dmkeypar $REPLY

or what is wrong with this ... why do you need to prompt for the location, just...
19,527
Posted By jacksona2
oops
you right it doesn't work, alias doesn't support passing in $1 for some reason, but you can create a seperate function in your bash profile,

This should work

-bash-3.00$ cdfunc()
{
cd $1;ls...
19,527
Posted By jacksona2
Why doesn't this work? It worked for me
Why doesn't this work? It worked for me
19,527
Posted By jacksona2
try alias cdls='cd $1 && ls'
try

alias cdls='cd $1 && ls'
Showing results 1 to 11 of 11

 
All times are GMT -4. The time now is 06:24 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy