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 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'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?
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);
That's my problem: I've added a new user in our NBX v3001 3com (now hp) and all the incoming calls are diverted, without ringing, to the voicemail.
The phone is a Sip Endpoint Terminal and I really don't have a clue why this is happening since I've installed other identical phones without troubles.
I've also tried deleting and re-adding the user and changing the extension: nothing.
Any hints to solve?
I have problem to mount a compressed (ISZ) image under Linux, which was created by e.g. UltraISO? I am aware about user-space fuseiso, but it fails to mount these images, as I have reported in Debian bugtracker (correct me if I ddi something wrong). I ask the community for a help: I need a proved solution to mount these images without decompressing them.
I believe that CONFIG_ZISOFS kernel option cannot help, as it refers a special RockRidge extension (per-file compression with mkisofs -z or mkzftree).
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.
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 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.
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?
Our customer has a problem with database information in plaintext within a server.xml or context.xml file on the Tomcat server. I've looked at several sites like OWASP and it seems like there's no obvious solution. I've also seen things like this wordpress blog which describe implementing a custom Tomcat extension to do this. There must exist some standard implementation(s) already without having to roll your own. Does anyone have experience with such a solution?
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
Suppose I have two folders, dir1 and dir2, with deveral files in each of them, and all the files in dir1 are named like "ExampleFileName.flac" and all the files in dir2 are named as "ExampleFileName.m4a" - basically their names are the same except the extension.
What I need to do is transfer all of the metadata for each of the files somehow - even though their codecs are different.
It would be great if I can do this via command line, but anything is appreciated.
Thank you.
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.
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 a Windows 2003 server running a SSH server (WRQ Reflection), how would I ssh to it and specify a specific drive letter? (like the D: drive)
ex: from another workstation: ssh [email protected] d:
When I do that it fails and I get this error: "exec request failed on channel 0" If I simply SSH to that same windowsbox without trying to specify a drive letter I get a Windows (CMD.EXE) command prompt shell on the C: drive. I can then run any windows command.
Thanks
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.
Does anybody know if there's a keyboard shortcut equivilant to the right click - New context menu in explorer?
Given that I suspect that there isn't, does anybody know of an explorer extension that offers something similar? It would be great to have a key combination that yielded an intellisense style dropdown (or similar) of the available file types!
Alright, so I need the soap extension enabled in php. When I run phpinfo(), it's not there, so I'm guessing I have to recompile?
I can follow tutorials online to recompile the most recent php version for centos, but will it generally just work after that? Or does apache need to know to use the new installation?
Thanks for any direction you can give me.
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?
I've enabled curl in PHP.INI en restarted my machine and Apache.
extension=php_curl.dll
Still I get the following error in my php script:
Call to undefined function curl_init()
I'm running XAMP on Windows XP Pro.
Any thoughts?
php_curl.dll is in C:\Program Files\xampp\php\ext
extension_dir = "C:\Program Files\xampp\php\ext\"
I use the following directive in sshd_config to detect if the user trying to login to a server is called developer, and issue a bash script to the user if that is the case:
Match User developer
ForceCommand /bin/dev_login
However, when the user tries to upload a file using SCP, they can't, as the dev_login script is interrupting the process.
Is it possible to use the
Match
directive to detect if the connection is SCP rather than a request to open a shell?
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?