Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Edit remote files using local copy of BBEdit via sftp' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Edit remote files using local copy of BBEdit via sftp
Authored by: xSmurf on Aug 16, '05 11:07:50AM
Leet! I've wanted something like this for a while now!
Sadly I can't seam to make it work. In my .bash_profile I have:
alias rbbedit='ssh 192.168.2.1 bbedit "sftp://192.168.2.2/!:1"'
When I try it out, it does connect as it asks for a password... but no go :/

Fripouille:~ xSmurf$ echo "lol" > ~/test.txt
Fripouille:~ xSmurf$ rbbedit test.txt 
Password:
Sorry, the bbedit tool has experienced an error: -43
    File not found. Use -c to create a file for editing.
What ever I give it for an argument it doesn't see the file even if I know it's there! Help would be much appreciated!

P.S. I also tried without the alias just to see if it wasn't receiving the arg. properly but it doesn't seam to be the case as the error still comes up.

---
PM G4 DP 800 / 1.25gb / 120Gb+80Gb / CD/DVD±RW/RAM/DL
- The only APP Smurf

[ Reply to This | # ]

Edit remote files using local copy of BBEdit via sftp
Authored by: bimtob on Aug 16, '05 08:54:59PM
Try:
alias rbbedit='ssh 192.168.2.1 bbedit "sftp://192.168.2.2/$PWD/!:1"'
The $PWD is replaced with the path to your current directory (i.e. /Users/xSmurf/).

Or you can leave it like you have it and use the full path to the file you want to edit.
Like so:
Fripouille:~ xSmurf$ rbbedit /Users/xSmurf/test.txt 


[ Reply to This | # ]
Edit remote files using local copy of BBEdit via sftp
Authored by: xSmurf on Aug 16, '05 10:01:19PM

Ho, for some reason I didn't think of the "pwd" command and had password in mind! So I placed it back... no go :/ Same error

---
PM G4 DP 800 / 1.25gb / 120Gb+80Gb / CD/DVD±RW/RAM/DL
- The only APP Smurf



[ Reply to This | # ]
Edit remote files using local copy of BBEdit via sftp
Authored by: xSmurf on Aug 16, '05 10:18:25PM

P.S. I did also try escaping the '!'... no go :/

---
PM G4 DP 800 / 1.25gb / 120Gb+80Gb / CD/DVD±RW/RAM/DL
- The only APP Smurf



[ Reply to This | # ]
Edit remote files using local copy of BBEdit via sftp
Authored by: bimtob on Aug 17, '05 11:29:42AM

Check lukemelia's comment. Looks like a bash thing.



[ Reply to This | # ]