sysadmin

Sender and receiver to transfer files over ssh on request?

核能气质少年 提交于 2019-12-03 05:15:32
问题 I created a program that iterates over a bunch of files and invokes for some of them: scp <file> user@host:<remotefile> However, in my case, there may be thousands of small files that need to transferred, and scp is opening a new ssh connection for each of them, which has quite some overhead. I was wondering if there is no solution where I keep one process running that maintains the connection and I can send it "requests" to copy over single files. Ideally, I'm looking for a combination of

Opening a remote machine's Windows C drive [closed]

烈酒焚心 提交于 2019-12-03 03:44:08
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 10 years ago . I'm trying to locally mount a machine's C drive that is on my LAN. I need to able to browse the contents of the other machine when tracing through code. I once saw a sys admin do some crazy windows incantation from the cmd prompt. Something like $remote_machine/local_access/C Is anyone familiar with how this is

Windows Mobile - What scripting platforms are available?

白昼怎懂夜的黑 提交于 2019-12-03 03:35:00
We have a number of users with Windows Mobile 6 and need to apply minor changes. eg. update a registry setting. One option is push and execute an executable file using our device management software. I'd like this to be a little more friendly for the admins who are familiar with scripting in VBScript/JScript etc. What are the options for scripting on Windows Mobile devices? Once option that the devs over at xda-developers seem to enjoy is Mortscript I have never bothered to use it, but I have used many cab installers that distribute mortscript so that they can do various tasks I work on

Which Linux distribution should I use as a Xen host? [closed]

喜欢而已 提交于 2019-12-03 03:14:50
I ordered a server for the home office and I would like to partition it with Xen. I think this will keep things clean and easier to maintain. I will be running things like MySQL, PostgreSQL, Tomcat, and my own code. What freely available Linux distribution has the best Xen hosting facilities? I highly recommend Debian or Ubuntu (server) for domain-0. Here's why: Setting up complex networking (bridges, bonded devices, etc) is simple. One file, easy syntax, easy to have scripts do it for you if need be. Do not use the 'network-bridge' script that comes with Xen on a production box, you may need

When could or should I use chmod g+s on a file or directory?

久未见 提交于 2019-12-03 01:56:38
问题 In deploying to a new (Solaris 9) environment recently, one of the steps was to copy a set of files and directories to their new location and then to apply the group UID bit (using "chmod -R g+s") to all files in the directory tree giving a mode of -rwxr-s--- to everything. The result was that none of our shell scripts would execute unless they were individually opened and re-saved. I should add that we had earlier set g+s on the target parent folder prior to copying files; this had set the

How is it possible that kill -9 for a process on Linux has no effect?

99封情书 提交于 2019-12-03 01:09:54
问题 I'm writing a plugin to highlight text strings automatically as you visit a web site. It's like the highlight search results but automatic and for many words; it could be used for people with allergies to make words really stand out, for example, when they browse a food site. But I have problem. When I try to close an empty, fresh FF window, it somehow blocks the whole process. When I kill the process, all the windows vanish, but the Firefox process stays alive (parent PID is 1, doesn't

Crontab Day of the Week syntax

不打扰是莪最后的温柔 提交于 2019-12-03 00:26:45
问题 In crontab does the Day of the Week field run from 0 - 6 or 1 -7 ? I am seeing conflicting information on this. wikipedia states 0-6 and other sites I have seen are 1-7 . Also what would be the implication or either using 0 or 7 incorrectly? i.e. would the cron still run? 回答1: 0 and 7 both stand for Sunday, you can use the one you want, so writing 0-6 or 1-7 has the same result. Also, as suggested by @Henrik, it is possible to replace numbers by shortened name of days, such as MON , THU , etc

Sender and receiver to transfer files over ssh on request?

可紊 提交于 2019-12-02 18:33:29
I created a program that iterates over a bunch of files and invokes for some of them: scp <file> user@host:<remotefile> However, in my case, there may be thousands of small files that need to transferred, and scp is opening a new ssh connection for each of them, which has quite some overhead. I was wondering if there is no solution where I keep one process running that maintains the connection and I can send it "requests" to copy over single files. Ideally, I'm looking for a combination of some sender and receiver program, such that I can start a single process (1) at the beginning: ssh user

Best way to sandbox Apache on Linux

久未见 提交于 2019-12-02 17:37:58
I have Apache running on a public-facing Debian server, and am a bit worried about the security of the installation. This is a machine that hosts several free-time hobby projects, so none of us who use the machine really have the time to constantly watch for upstream patches, stay aware of security issues, etc. But I would like to keep the bad guys out, or if they get in, keep them in a sandbox. So what's the best, easy to set up, easy to maintain solution here? Is it easy to set up a user-mode linux sandbox on Debian? Or maybe a chroot jail? I'd like to have easy access to files inside the

Opening a remote machine's Windows C drive [closed]

吃可爱长大的小学妹 提交于 2019-12-02 17:11:12
I'm trying to locally mount a machine's C drive that is on my LAN. I need to able to browse the contents of the other machine when tracing through code. I once saw a sys admin do some crazy windows incantation from the cmd prompt. Something like $remote_machine/local_access/C Is anyone familiar with how this is done? If it's not the Home edition of XP, you can use \\servername\c$ Mark Brackett's comment: Note that you need to be an Administrator on the local machine, as the share permissions are locked down If you need a drive letter (some applications don't like UNC style paths that start