Questions tagged [command]
186 questions
1
vote
0 answers
Windows Server 2012 Scheduled Task window title is taskeng.exe (but not always)
We have several scheduled tasks running console apps on a Windows Server 2012 machine. When many of these run, and the console command window appears, the window title is "taskeng.exe" but sometimes it shows the path of the job it is running (i.e.…

drschank
- 11
- 1
1
vote
1 answer
Setting IP that i have pinged to be a variable
I am having great difficulty with a batch file i am working with.
With the update i received below, i use nslookup to return the IP of the address.
Is it possible to extract the IP returned with the nslookup command as a variable, and then edit the…

Alex
- 21
- 5
1
vote
2 answers
How to take backup of a table on a different schema in PostgreSQL
Please let us know in PostgreSQL how we can take backup of a table on a different schema. We have db named "geopostgrest" and under Schema named "1" (Not inside Public Schema) we need to take backup of table "activity"
Please see the…

Geo
- 575
- 3
- 9
- 23
1
vote
1 answer
Command substitution into bash script $1 value
I have this simple script which changes permissions on my apache2 websites
/var/www/html# cat permissions_setup.sh
chown -R root $1
chgrp -R www-data $1
chmod -R 750 $1
chmod g+s $1
I have two .sh shell scripts in my html/ directory
/var/www/html#…

phillipsk
- 185
- 2
- 8
1
vote
3 answers
How to find which folder is eating space fast?
I am running Linux server, we using this server as a samba share drive. From yesterday suddenly, one of the share drive size getting increasing (~ 100 MB every ten min). There are too many folders and sub folders are there in this share drive. Now…

sridhar raj
- 41
- 1
- 1
- 3
1
vote
1 answer
Issue command on multiple systems at once using MCollective
Aim
The aim is to execute a command on multiple systems at once using MCollective, e.g., touch /tmp/helloworld using MCollective-client creates touch /tmp/helloworld on all MCollective-servers: systems 1, 2 and 3.
Attempts
According this…

030
- 5,901
- 13
- 68
- 110
1
vote
4 answers
How to pass a string to a command (Linux)
I have a case where I am passing a content of a file to a command like this:
cat file_name.txt | my_command
But I want to pass a string directly, without reading a txt file content. So I want to have something like this:
"my file content as a…

Narek
- 245
- 1
- 4
- 15
1
vote
1 answer
Command apt-get -t wheezy-backports install linux-image-amd64
I have a server with Debian wheezy and kernel vmlinuz-3.2.0-4-amd64, hosted at OVH.
I would like to upgrade the kernel. Normally at ovh, you can find some kernel already configured. but the files I have are not the same…

denis
- 11
- 1
1
vote
1 answer
dsget error probably because of users with "-" in their name
I'm trying to run a dsquery/dsget that will result in users that weren't active for a month and that are not disabled:
dsquery user -inactive 4 -limit 0 | dsget user -samid -disabled >>desktop\users.txt
This results in an error:
dsget failed:'-' is…

Npv23g
- 320
- 4
- 6
- 12
1
vote
2 answers
Can I find the list of ports being listened by a process ordered by the time of opening?
I know I can see the list of open ports using the lsof command.
I am trying to view the results ordered by timestamp of listening.
The process opens multiple (~6) ports and I suspect the order of initialization/binding on that port is the cause of…

rajeshnair
- 113
- 5
1
vote
1 answer
tail command not updating output for debug files
I know that tail -f /var/log/messages will be keep updating on screen as the contents of file gets updated.
But when I tried the same thing with a debug file system's file it is not working , any idea?
I tried ftrace and tried this: tail -f trace…

kumar
- 433
- 3
- 10
- 23
1
vote
1 answer
Extract ip, mask and gateway of a network interface separately
I know that the command ifconfig will give you ip, mask and gateway of a given network interface. I want to "programmatically" extract each of those paramaters separately. At the moment the best solution I can think of is to do some parsing by using…

Randomblue
- 1,165
- 5
- 16
- 33
1
vote
1 answer
Ubuntu 11.10 Cron Job fails With - Not Found
I have a script that is supposed to run hourly. It was working fine for a while and then it seemed to stop working after some system updates were applied. At that point it stopped working and presented the error below in…

Cronfused
- 31
- 2
1
vote
1 answer
changing network speed to 1000Mb/s
I am trying to change the server uplink from 100Mb/s to 1000Mb/s
ethtool eth0 output
# ethtool eth0
Settings for eth0:
Supported ports: [ TP MII ]
Supported link modes: 10baseT/Half 10baseT/Full
…

iLinux85
- 205
- 1
- 3
- 10
1
vote
3 answers
Looking for a package that aliases commands on multiple remote hosts using ssh
i would like to find a program that maintains a list of commands that can be aliased for different hosts.
for example, we have a database server, and four web servers. a common task is to login to the admin server and restart mysql using
# ssh…

jaymz
- 29
- 3