Hi,
I have seen a strange directory on my linux server.. Here it is:
drwxr-xr-x 2 root root 4096 Jan 12 2005 \t\t\t\t/
How can i escape \t under shell?
Thanks!
What do you use to search folders with 1000s of files. Surely not WinExplorer's default search and filter on Vista? If possible, something accessible from within the explorer shell. Else I'm open to any search tool that's consistent and allows me to perform actions on the search results (eg:open file, view file etc);
In a vsftpd server enviroment, shared various directories from nfs mountpoints, I can log in without problem, but when I send the first "ls", the vsftp give me the directory listing:
lftp [email protected]:~ ls
-rw-rw-rw- 1 1160 1016 392 Jun 06 09:28 test.gif
but not give me the shell again (lftp client). In the server log I can see that the last message is:
"150 Here comes the directory listing."
Why happend this?
I've installed Ubuntu Server under Virtualbox just to get a nice little shell. I've also installed the VirtualBox "Guest Additions" and set "Shared Clipboard: Bidirectional".
I still can't seem to get any copy-paste working.
Am I missing something here?
I've installed gpm which gives mouse support in server mode (no X), and allows copy-paste using the mouse, but still the VirtualBox integration doesn't work.
I am running ubuntu on various computers on a home network. Some are on 9.04x64, some 10.04x64 and one 9.04x32.
Running scp with a large file starts out at 2.1 mbps and drops down to about 200k, stalling and dropping until the transfer is complete. I've noticed this when I have a secure shell open on any of these servers as well.
I have tried this with 2 different routers, both brand new, different brands.
I'm running some Fortran software (LBLRTM) and a shell-script that prepares input generates a number of files with names TAPE3, TAPE4, etc. For debugging purposes, I used file to identify the file type. file tells me:
TAPE3: 8086 relocatable (Microsoft)
My guess is that file is wrong here, and that it's just a binary file that happens to look like a 8086 relocatable. But what is a 8086 relocatable?
I'd like to take an IP address from my Terminal, right click, select Services Whois and get the results back somehow.
This doesn't exist so I'm wanting to create a simple Automator script to do that. But, I'm running into a few problems.
This is what I've done - Automator Actions:
Get Specified Text
xxx.xxx.xxx.xxx
Run Shell Script
for x in "$@";
do whois $x;
done
View Results
But all I get in View Results is this:
(
""
)
Any suggestions?
I'd like to automatically run a shell script every time I authenticate onto my computer. However, all the info I can find about loginhook and Global LoginItems applies only when authenticating to "loginwindow," and not to the "unlock panel."
The unlock panel prompts for a password when waking up from sleep or from a locked screen.
Is there any way to trigger script execution after successfully unlocking the screen?
I'm using Ubuntu 12.04 LTS (Precise Pangolin) with grub 1.99. I installed on a RAID10 multidevice BTRFS partition. I thought that multidevice support is included in grub for a while but on boot I'm dropped to a initramfs shell, because it fails to mount root ("invalid argument"). This is actually the same message I get if I want to mount a btrfs volume without executing btrfs device scan.
Therefore I wonder: Does Ubuntu's grub version even support boot from btrfs mutlidevice ?
There are several ways how to toggle hidden files - via a shell command, or AppleScript, or Automator action, or even a Dashboard widget. All of them close and reopen Finder windows, which is quite annoying.
On the other hand, for the Open File dialog one can easily toggle hidden files by pressing Command+Shift+Period.
Is it possible to avoid relaunching Finder?
I have been away from Solaris for the last 5 years. I am use to use pageup and pagedown rather than b and f.
Anyone know a simple way to make this work? My shell is /bin/tcsh ( Im QA so I cannot change this. ) if it matters
When ever I run an Exchange 2010 SP1 Discovery Search I get the following error:
"Search failed as the results link to the target mailbox '[email protected]' couldn't be generated."
I have checked to ensure the discovery mailbox is enabled
I created a new Discovery mailbox. I get the same error with both Mailboxes.
The user account I am using to run the search is a member of the "Discovery Management" security group.
I get the same error whether I use the Shell or the ECP to run the
search
Suppose I add a new word count function to my .emacs file to count words:
(defun word-count nil "Count words in buffer" (interactive)
(shell-command-on-region (point-min) (point-max) "wc -w"))
I remember there being a way to run a function by typing the function name, but I don't remember how. What key sequence do I type before I type word-count, enter?
Hy,
I need a (linux/shell) script which does the following:
It takes a folder full of jpg-files, generates thumbnails and previews (maybe using imagemagik's convert) and creates a html-page which includes all the thumbnails, opens a preview using something like LightBox and links to the original size.
Does somebody know a script which does this? I could write one on my own, but it would save me some time.
I try to use the php ftp_connect fucntion on my dedicated server and I'm unable to establish a connection:
$conn_id = ftp_connect($ftp_server, 21) or die("Unable to connect to $ftp_server") ;
I'm sure the function is available as I test with :
function_exists('ftp_connect')
and it returns true
When I ftp the server through the shell I can reach it so I guess it's not a firewall issue.
Am I missing something else ?
Thanks for your precious advices
I am looking for options to install a system OpenBSD which has certain configs prewritten. What options can I look for?
An install image which when installed, installs a system with a configuration
A shell script with root privilege which does the required configuration after a regular install
Remote configuration of the target system after a regular install
Any help or pointers will be appreciated.
Have a maildir with tens of thousands of messages in it, about 70% of which are spam.
Would like to:
Run /usr/local/bin/spamassassin against it, tagging each message if the score is 10 or greater
Have a tcsh shell or perl one-liner grep all mails with a spam score of over 10 and move those mails to /tmp/spam
What commands can I run to accomplish this? Pseudocode:
/usr/local/bin/spamassassin ./Maildir/cur/* -tagscore10
grep "X-Spam-Score: [10-100]" ./Maildir/cur/* | mv %1 /tmp/spam
Hello Everyone,
I have a intel d525mw motherboard, on which I have ubuntu server.
When I go to reboot my machine, it goes to the restart prompt and then just hangs there.
I have also noticed this when I had freebsd on it.
It kills everything and drops to a shell view where the final line reads something like "[timestamp] restarting now" and then it just sits there and I manually have to reboot it.
Any idea what could be causing this?
I'm working on a cents 6.3 box and am trying to log all commands executed from a bash shell and came across pam_tty_audit. I've added the appropriate line to my /etc/pam.d/system-auth file: "session required pam_tty_audit.so enable=*"
The problem is that it does not appear to capture commands unless a user is root. For example, if i ssh in as root it logs everything to the audit log, but if I ssh as a regular user it does not start logging anything until after I have su to root.
Any ideas?
i'd like to start zsh similar to
zsh -c 'my_prog option1 option2'
but instead of exiting after running that command, leaving me at the propt of the invoked zsh (not wherever it is being called from). one particular use-case for this is in screenrc files, you could do something like:
screen -t my_prog 0 zsh -c 'my_prog opt1 opt2'
and after running that command you're left with a shell there instead of it closing.
I'm using wajig to install packages, however when i've changed my shell to zsh it turned out that zsh doesn't list all packages in completion list, for ex.
apt-get install octave[TAB]
(about 70 completions)
but when i try
wajig install octave[TAB]
or
aptitude install octave[TAB]
zsh shows only 19 completions
other shells i've tested (bash, fish) shows all ~70 completions in all 3 cases.
So is there any way to 'fix' this completion in zsh?
Hi all,
I want to block users from changing directories when they log in via scponly's shell. How can I do that? I need to be able to provide users with their own upload directory that only they can see and read/write. They should not be allowed to execute any code, ie, change directories or the like.
Thanks.
someone showed me a really quick way to get folders off an ftp site via the shell on a Mac using the command "wget -r ftp://" (then the address of the ftp site folder location) and it would download to whatever folder i was in, keeping all the sub directories the same as the ftp site
seemed really quick and easy, but how do i do a similar thing on a PC?