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!
i'm running a shell script that uses wget and pulls something over the web, my question is is there a way to tell wget to abort as soon as it hits 500 error code?
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.
In XP I think I used to be able to do this. In the shell replacement XYplorer I can do this. In the file search utility called Everything (from voidtools) I can do this. So what is the trick in Windows 7 and why do I even need a trick.
I need to create a daily full backup (snapshot) of a directory tree + hourly differentials. A developer who has only sftp access needs to be able to restore from the backups and hence a solution such as rdiff-backup or duplicity wont work as she would need shell access to restore (afaik). I imagine that rsync and cron would do the job well. What is the best solution?
i need to change my default browser through my coding and so first i try to figure it through regedit (registy keys)
http://stackoverflow.com/questions/968449/how-do-i-change-default-browser-using-c-sharp-or-batch-file as mentioned i used reg key{HKEY_LOCAL_MACHINE\SOFTWARE\Classes\http\shell\open\command} then i manual change my web browser from internet explore to chrome. but after i refresh values does not change in reg key. why this happen??? how can i detect my default browser in reg key?
I have a few production Fedora and Debian webservers that host our sites as well as user shell accounts (used for git vcs work, some screen+irssi sessions, etc).
Occasionally a new kernel update will come down the pipeline in yum/apt-get, and I was wondering if most of the fixes are severe enough to warrant a reboot, or if I can apply the fixes sans reboot.
Our main development server currently has 213 days of uptime, and I wasn't sure if it was insecure to run such an older kernel.
If I run a program from the shell, and it segfaults:
$ buggy_program
Segmentation fault
It will tell me, however, is there a way to get programs to print a backtrace, perhaps by running something like this:
$ print_backtrace_if_segfault buggy_program
Segfault in main.c:35
(rest of the backtrace)
I'd also rather not use strace or ltrace for that kind of information, as they'll print either way...
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.
Currently I do something like this:
telnet 192.168.0.3 23
username
password
cd /dir/
programname -s -g dosomething
I want to do this with one step, the coolest would be to compile a program for this using Automator, but i have no idea how to do that.
"shell script" in Automator fails at telnet 192.168.0.3 23 saying "connection refused" of course: I had no chance to type in password and so on.
Any ideas?
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
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
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'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'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?
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?
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 ?
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?
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.
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 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.