To run command on system...
Hi geeks...
How I can to do to execute a command on system?
I use Linux... so... how I can to do to run df command by Java?
Thanks.
hi there
i dono about UNIX but i have a code that works fine on WIN
i think u can modify that according to yr need so here is the code
String os_name = System.getProperty("os.name");
os_name = os_name.toUpperCase();
String[] command ;
if(os_name.indexOf("XP") != -1){
command = new String[] {"cmd", "/C", "start", "\"\"", File_Name};
else if(os_name.indexOf("NT") != -1){
command =new String[] {"cmd", "/C", "start", "\"\"", File_Name};
else if(os_name.indexOf("2000") != -1){
command = new String[] {"cmd", "/C", "start", "\"\"", File_Name};
else {
command = new String[] {"start", "\"\"", File_Name};
try
Process process = Runtime.getRuntime().exec(command);
catch(IOException ioe)
{/ yr error msg here}
Here File_Name is the file which u want to run i mean it can be any file (Doc,HTML.......... and so on )
hope this helps u
Regards
Satinderjit
Similar Messages
-
How to run commands upon system boot as user?
How can I as a user run commands upon system boot? In Vixie's cron, one can use the @reboot syntax in a crontab, and the job is ran every time the cron daemon starts. Arch however, uses Dillon's cron which seems not support this feature.
bwalk wrote:Hmm, does not work, because root owns init, so everything requires root. stb's version is valid, the -s parameter drops privileges to <USER>, spawns a shell and executes <COMMAND>. So, no security problem whatsoever.
So there is nothing like @reboot in vixiecron? -
How to Run the NEW "System Info Command" in Tiger ?????
I am new to Applescript and was wondering if someone could help me on how to run the new "System Info Command"?
Thanks!!!The "system info" command that red_menace uses above is the new system info command that's mentioned on the web page you referenced. However, red's example only displays the "long user name" and the "AppleScript version" in the dialog.
The entire system info record actually contains all of these items, each of which you can access just like red_menace shows you in his example:
AppleScript version
AppleScript Studio version
system version
short user name
long user name
user ID
user locale
home directory
boot volume
computer name
host name
IPv4 address
primary Ethernet address
CPU type
CPU speed
physical memory
Steve
PS - if you switch Script Editor over so the bottom pane displays the "Event Log" you'll see the entire system info record displayed in the log when you run red_menace's script. -
How can I know if a process is running in the system???
Hello all,
I generate a pdf file with Reports Builder called from Forms Builder.
This pdf is printed in the default printer with the command line "start AcroRd32.exe /p /h path_file", inside host command, which open the Acrobat Reader and prints the document in the default printer.
After the document is printed the document is closed but not the Acrobat Reader program.
I need an instruction to know if the acrord32.exe is running in the system.
Could anyone help me?
Thank you very much for advance,
Jordido you use the commandline, because you want to print directly to your default-printer?
then have a look at the orarrp - toolset on otn.
It's a technique, which directly prints via MIME-extensions of your browser. Internally Adobe is used for this direct print, but you only have to install a little program on your client.
try it
Gerd -
How to run command SQLLoader Oracle in c#
Hello,
How to run command SQLLoader Oracle in c#. I try my sourcode for run this SQLLoader, but nothing happen and error "No process is associated with this object.". Please tell me how i fix it. Thanks.
This is my code:
System.Diagnostics.Process process1;
process1 = new System.Diagnostics.Process();
process1.EnableRaisingEvents = false;
string strCmdLine;
strCmdLine = @"/C SQLLDR XL/secreat@O11G CONTROL=E:\APT\LoadXL.ctl";
System.Diagnostics.Process.Start("CMD.exe", strCmdLine);
process1.WaitForExit();
process1.Close();jesperdj ,thanks:)
actually,i am using eclipse to run my ant tasks programmatically,but I got trouble with the AntRunner class.it seems that i should config a proper classloader for it,but i just don't know how.please lend a hand:)thanks
robin -
I am using a HP desk top with Windows Vista. When ever I try to copy and paste from Mozilla Firefox, the DEP system shuts down
Microsoft Works Word Processor. I have tried turning off DEP for Works but it still shuts down the Program.This is might because of your prior change in softwares. so first you have to do run '''sfc''' in run command. and then you see the specific problem which causes this . Since System File Checker (sfc) scan will make Windows replace corrupt or missing system files on your computer.
* Click Start>All Programs>Accessories>right-click Command Prompt, and select Run as Administrator.
* Click Continue or supply Administrator credentials if prompted.
* In the Command Prompt window type the following, and press Enter:
sfc /scannow
Refer this KB article for more information:
http://support.microsoft.com/kb/929833
See this is not a problem of firefox till now. You can check more with microsoft answers site. -
In Windows I would expect to call up a seperate command window with the following, but it appears to freeze up. What am I doing wrong?
import java.io.*;
public class command {
public static void main(String[]args) {
try {
Process runprogram = Runtime.getRuntime().exec("C:\\windows\\system32\\cmd.exe");
try {
runprogram.waitFor();
catch(InterruptedException e){}
catch(IOException e) {
System.err.println("Cannot run command window");
}What about this...
Process proc = null;
try
proc = Runtime.getRuntime().exec("start cmd");
proc.waitFor();
catch(Exception e)
e.printStackTrace();
}Some dukies would be nice next time ;-) -
Error running command: /usr/java/bin/java: error execing process: Not enough space
In a whole root zfs zone the webconsole service fails to start. This is what I get:
svc:/system/webconsole:console (java web console)
State: maintenance since Fri Aug 27 14:32:41 2010
Reason: Start method exited with $SMF_EXIT_ERR_FATAL.
See: http://sun.com/msg/SMF-8000-KS
See: man -M /usr/share/man -s 1M smcwebserver
See: /var/svc/log/system-webconsole:console.log
Impact: This service is not running.
# more /var/svc/log/system-webconsole:console.log
^C# more /var/svc/log/system-webconsole:console.log
[ Aug 6 09:30:40 Disabled. ]
[ Aug 6 09:30:40 Rereading configuration. ] [ Aug 6 09:30:52 Enabled. ] [ Aug 6 11:32:50 Enabled. ] [ Aug 6 11:33:02 Executing start method ("/lib/svc/method/svc-webconsole start"
Starting Sun Java(TM) Web Console Version 3.1 ...
The console is running.
[ Aug 6 11:33:25 Method "start" exited with status 0 ] [ Aug 27 14:32:15 Enabled. ] [ Aug 27 14:32:28 Executing start method ("/lib/svc/method/svc-webconsole start"
Error running command: /usr/java/bin/java: error execing process: Not enough spa ce [ Aug 27 14:32:41 Method "start" exited with status 95 ] # df -k
Filesystem kbytes used avail capacity Mounted on
/ 0 4341506 3761710 54% /
/dev 8103216 4341506 3761710 54% /dev
proc 0 0 0 0% /proc
ctfs 0 0 0 0% /system/contract
mnttab 0 0 0 0% /etc/mnttab
objfs 0 0 0 0% /system/object
swap 2498344 360 2497984 1% /etc/svc/volatile
/platform/SUNW,T5240/lib/libc_psr/libc_psr_hwcap2.so.1
8103216 4341506 3761710 54% /platform/sun4v/lib/libc_psr.so.1
/platform/SUNW,T5240/lib/sparcv9/libc_psr/libc_psr_hwcap2.so.1
8103216 4341506 3761710 54% /platform/sun4v/lib/sparcv9/libc_psr.so.1
fd 0 0 0 0% /dev/fd
swap 2497984 0 2497984 0% /tmp
swap 2498024 40 2497984 1% /var/run
Grp-MFNY/billables/RV
20514816 22 3761710 1% /RV
Grp-MFNY/billables/TT_DB
20514816 28 3761710 1% /TT_DB
Grp-MFNY/billables/tabYou need to find the java exceptions - most likely in the logs in the /var/log/webconsole/console directory.
A wild guess is you don't have enough swap space to perform a fork.
-- Ken -
Run Command through Java Program.
I am giving ping command in exec method of Runtime().
But ping syntax is different for linux and windows. So when I run command on windows it wasn't worked. I am giving command --> ping -c5 ipaddress . This works fine for linux but in windows, there is no -c option. So is there any solution to overcome this situation?
please reply ASAP.
Thanks,
RajI am writing code that runs ping command on all OS.
Ping syntax different for different OS (like
windows,linux,solaris etc).
I don't want to check for each OS and run command
specific to that OS.
I want to write a generic program so ping command
execute regardless of which OS. This is self-contradictory. You can't use one command line string on different platforms if they don't support this one command string.
The ping command is different (concretely, this -c option you mention is indeed not supported on Windows - what does it do anyway?) on different OS.
So, you basically have two options:
- You use only a subset of the ping options, one that does run on all your platforms (I actually expect ping to be pretty portable anyway but...).
- Or you do use platform specific options like -c, in which case there's no way around checking the running OS and generating a specific command line.
Can I use system calls in my program to execute the
ping command, If yes, how?Rephrase please. -
Setting user permissions when running commands
Here's a doosey,
Looking to implement a system which will run "commands" being recieved from the network from a bunch of different users. I want the users to have different permissions depending on their username. I'm thinking the backing store as being an LDAP database. (easy update over the network, no using the policy editor, etc).
Anyone got any advice, experience, existing products which do this? I"m looking at java.security.Profile and java.security.AccessController, java.security.ProtectionDomain and rolling my eyes. Kinda difficult.
Am I barking up the wrong/right tree?
Any ideas?
Many thanks
KeithI think I understand what you're saying, however i'm using the LDAP database to store the user's permissions (exactly like a policy file). So I"m not using LDAP to handle the authentication, just the data.
It's the process of what you call "assigning the secuirty level" that I wanted to do...
I think I've found what I'm looking for - JAAS. First I implent a java.security.Policy (in particular the getPermissions(ProtectionDomain domain) method). Then create my own java.security.Principal (containing the username) and associate that with a java.security.auth.Subject then use the Subject.doAs method.
IN the command code then I do a AccessController.checkPermission(Permission ) method which will throw an exception if the permission is not found.
I think this is it anyway. -
How could the wireless ethernet card running automatic when system reboot?
I have already setup the wireless networking card correctly which name is wpi0,but every time when I use it to link to internet,
I had to key the instuction like this :
ifconfig wpi0 plumb
ifconfig wpi0 up
ifconfig wpi0 dhcp
and then input:
wificonfig -i wpi0 connect mywifi
comment: mywifi is the profile file of connection to my wireless router
I had set it with the instruction before like thisi
wificonfig createprofile mywifi essid=2WIRE678 encryption=wep wepkey1=1234567890
anybody can help me group up the command line and has it running automatic when system reboot
it seems the wireless card always need manual connect to router, that 's trouble.It should connect on it's own. Which version of Solaris are you using?
If worse comes to worse just drop all of your commands into a simple script and then run that script as part of your .profile or equivalent.
alan -
ArchTaz Live: boot and run an Arch system entirely in RAM
ArchTaz Live Boot: A method to boot and run an Arch system entirely in RAM using tmpfs.
As the name suggests it was inspired by (copied entirely from) SliTaz http://www.slitaz.org/ and boots in exacly the same way.
It needs a custom init script in the root directory and for some reason that I can't work out a hook for sysinit_premount in rc.sysinit to remount / rw.
The /usr/bin/archfs script is just a chunk of Slitaz's Tazusb utility with some minor changes (and I haven't properly tested the lzma or no compression).
The /init script is modified from the usual initramfs /usr/lib/initcpio/init with hints from the SliTaz /init script (and some personal additions for my system).
Copy init to the root directory, run archfs (eg. # archfs writefs gzip) and move the resulting archfs.gz to your boot partition/directory and boot with archfs.gz as your initrd.
I run a fairly light system (Openbox, Firefox, Gnome-Mplayer, SpaceFM, no dev packages) and gzip compression gives me an archfs.gz just over 230MB that boots in just over 30 seconds using 138MB RAM on startup, and most applications start instantly (2GHz Core2Duo, 4G RAM). Lzma compression generally gives a smaller archfs.gz but takes longer to boot. I have a persistent home partition, I install packages as I need them and then they're gone on next reboot if I don't do a new archfs.gz to keep them. I delete man pages, unneeded locales, etc. Obviously if you're running a hefty install on a limited box you may run into problems.
Any tips, cleanups, corrections welcome. It's been a mostly copy and paste and mash stuff together process so it isn't neat. And I think I may need some serious help when systemd becomes default.
/usr/bin/archfs:
#!/bin/sh
# Archfs - entirely copied from part of the Tazusb utility supplied with
# SLiTaz GNU Linux - with some cosmetic changes.
### Tazusb - SliTaz LiveUSB
### Tazusb is an utility to generate, configure and manipulate SliTaz LiveUSB
### bootable media and/or USB /home partition, such as flash keys, SD card or
### USB harddisk.
### Authors : Christophe Lincoln (Pankso) <[email protected]>
### Andrew Miller (Spode) <[email protected]>
COMMAND=$1
case $COMMAND in
writefs)
# Writefs to rootfs.gz
if [ -z $2 ]; then
COMPRESSION=none
else
COMPRESSION=$2
fi
# Start info
echo ""
echo -e "\033[1mWrite filesystem\033[0m
===============================================================================
The command writefs will write all the current filesystem into a suitable cpio
archive (rootfs.gz) usable on a bootable LiveUSB media.
Archive compression: $COMPRESSION"
echo ""
# Create list of files
find /bin /etc /init /sbin /var /lib /lib64 /root /usr >/tmp/list
for dir in /boot /dev /home /proc /sys /tmp /mnt /media /run
do
echo $dir >>/tmp/list
done
# Generate initramfs with specified compression
if [ "$COMPRESSION" = "lzma" ]; then
echo -n "Creating archfs.gz with lzma compression... "
cat /tmp/list | cpio -o -H newc | lzma > /archfs.gz
elif [ "$COMPRESSION" = "gzip" ]; then
echo -n "Creating archfs.gz with gzip compression... "
cat /tmp/list | cpio -o -H newc | gzip -9 > /archfs.gz
else
echo -n "Creating archfs.gz without compression... "
cat /tmp/list | cpio -o -H newc > /archfs.gz
fi
# Get initramfs size
size=`du -sh /archfs.gz | cut -f 1`
echo "==============================================================================="
echo "Root filesystem size: $size"
echo ""
echo -en "----\nENTER to continue..."; read i
esac
exit 0
/init:
#!/bin/bash
PATH=/bin:/usr/bin:/usr/sbin:/sbin
udevd_running=0
if [ -x /usr/bin/systemd-timestamp ]; then
RD_TIMESTAMP=$(systemd-timestamp)
fi
. /usr/lib/initcpio/init_functions
mount -t proc proc /proc -o nosuid,noexec,nodev
mount -t sysfs sys /sys -o nosuid,noexec,nodev
mount -t devtmpfs dev /dev -o mode=0755,nosuid
mount -t tmpfs run /run -o nosuid,nodev,mode=0755
mkdir -m755 /run/initramfs
# parse the kernel command line
parse_cmdline
for d in ${disablehooks//,/ }; do
[ -e "/hooks/$d" ] && chmod 644 "/hooks/$d"
done
#. /config
run_hookfunctions 'run_earlyhook' 'early hook' $EARLYHOOKS
[ -n "${earlymodules//[[:space:]]}" ] && modprobe -qab ${earlymodules//,/ }
[ -n "${MODULES//[[:space:]]}" ] && modprobe -qab $MODULES
# If rootdelay is empty or not a non-negative integer, set it to 10
if [ -z "${rootdelay}" ] || ! [ "${rootdelay}" -ge 0 ]; then
rootdelay=10
fi
run_hookfunctions 'run_hook' 'hook' $HOOKS
# honor the old behavior of break=y as a synonym for break=premount
if [ "${break}" = "y" ] || [ "${break}" = "premount" ]; then
echo ":: Pre-mount break requested, type 'exit' to resume operation"
launch_interactive_shell
fi
rootdev=$(resolve_device "$root") && root=$rootdev
unset rootdev
#fsck_root
# Make /new_root
mkdir /new_root
# Mount root at /new_root
#${mount_handler:-default_mount_handler} /new_root
echo -e "Switching / to tmpfs..."
mount -t tmpfs tmpfs /new_root
run_hookfunctions 'run_latehook' 'late hook' $LATEHOOKS
run_hookfunctions 'run_cleanuphook' 'cleanup hook' $CLEANUPHOOKS
# Stop udevd if is running
if [ "${udevd_running}" -eq 1 ]; then
udevadm control --exit
udevadm info --cleanup-db
fi
# Copy root
echo -e "Copying root..."
for i in $(ls -a /); do
case "$i" in
.|..) ;;
mnt) mkdir /new_root/mnt;;
proc) mkdir /new_root/proc;;
sys) mkdir /new_root/sys;;
dev) mkdir /new_root/dev;;
run) mkdir /new_root/run;;
new_root) ;;
*) cp -a /$i /new_root
esac
done
# Create mountpoints
mkdir /new_root/mnt/sda1
mkdir /new_root/mnt/sda2
mkdir /new_root/mnt/sda3
mkdir /new_root/mnt/sda4
init=${init:-/sbin/init}
echo -e "Switching root..."
exec env -i \
"TERM=$TERM" \
"RD_TIMESTAMP=$RD_TIMESTAMP" \
/sbin/switch_root /new_root $init "$@"
## Mount root at /new_root
#${mount_handler:-default_mount_handler} /new_root
#run_hookfunctions 'run_latehook' 'late hook' $LATEHOOKS
#run_hookfunctions 'run_cleanuphook' 'cleanup hook' $CLEANUPHOOKS
init=${init:-/sbin/init}
if [ "$(stat -c %D /)" = "$(stat -c %D /new_root)" ]; then
# Nothing got mounted on /new_root. This is the end, we don't know what to do anymore
# We fall back into a shell, but the shell has now PID 1
# This way, manual recovery is still possible.
err "Failed to mount the real root device."
echo "Bailing out, you are on your own. Good luck."
echo
launch_interactive_shell --exec
elif [ ! -x "/new_root${init}" ]; then
# Successfully mounted /new_root, but ${init} is missing
# The same logic as above applies
err "Root device mounted successfully, but ${init} does not exist."
echo "Bailing out, you are on your own. Good luck."
echo
launch_interactive_shell --exec
fi
if [ "${break}" = "postmount" ]; then
echo ":: Post-mount break requested, type 'exit' to resume operation"
launch_interactive_shell
fi
exec env -i \
"TERM=$TERM" \
"RD_TIMESTAMP=$RD_TIMESTAMP" \
/sbin/switch_root /new_root $init "$@"
# vim: set ft=sh ts=4 sw=4 et:
/etc/rc.d/functions.d/root_rw:
root_rw() {
mount -o remount,rw /
add_hook sysinit_premount root_rw
archfs:
http://pastebin.com/RNTDWhFc
init:
http://pastebin.com/n4vcqG62
root_rw:
http://pastebin.com/i1LV61SV
Last edited by 0ddba11 (2012-12-30 10:12:35)Oh yes any man directory was symlinked to /tmp long ago, so they don't even get installed.
Right, new boot process:
Using hooks in normal initramfs-linux.img to unpack archfs.gz into tmpfs and boot it.
Create an initcpio preset file /etc/mkinitcpio.d/archfs.preset:
# mkinitcpio preset file for the 'archfs' package
ALL_config="/etc/mkinitcpio.conf"
ALL_kver="/boot/vmlinuz-linux"
PRESETS=('archfs')
archfs_config="/etc/mkinitcpio.conf"
archfs_image="/boot/archfs-linux.lzo"
archfs_options="-S fsck -A tmpfs -z lzop"
Or append to the standard 'linux.preset' file so the initramfs is created automatically when you upgrade your kernel. Or alter /etc/mkinitcpio.conf to add options.
Create the file /lib/initcpio/hooks/tmpfs:
#!/usr/bin/ash
run_latehook() {
# Mount tmpfs root
mount -t tmpfs tmpfs /mnt
# Unpack rootfs
msg "Unpacking rootfs..."
cd /mnt
# parse the kernel command line
parse_cmdline
for archfs in ${archfs//,/ }; do
if [ "$archfs" = "xz" ]; then
xz -d < /new_root/boot/archfs.xz | cpio -imd --no-absolute-filenames > /dev/null 2>&1
elif [ "$archfs" = "gzip" ]; then
gzip -dc /new_root/boot/archfs.gz | cpio -imd --no-absolute-filenames > /dev/null 2>&1
elif [ "$archfs" = "lzo" ]; then
lzop -d < /new_root/boot/archfs.lzo | cpio -imd --no-absolute-filenames > /dev/null 2>&1
elif [ "$archfs" = "img" ]; then
cpio -imd --no-absolute-filenames /new_root/boot/archfs.img > /dev/null 2>&1
fi
done
# Switch tmpfs to new root
umount /new_root
mount -M /mnt /new_root
# vim: set ft=sh ts=4 sw=4 et:
And the file /lib/initcpio/install/tmpfs:
#!/bin/bash
build() {
add_dir /mnt
add_module ext3
add_binary cpio
add_binary xz
add_binary gzip
add_binary lzop
add_binary fsck.ext4
add_symlink /usr/bin/fsck.ext2 fsck.ext4
add_symlink /usr/bin/fsck.ext3 fsck.ext4
add_runscript
help() {
cat <<HELPEOF
This hook creates the tmpfs root, mounts the device that contains the
rootfs and extracts it into the tmpfs root.
HELPEOF
# vim: set ft=sh ts=4 sw=4 et:
This loads modules and fsck binaries for the filesystem of my /boot partition into the initramfs. It also adds all the relevant compression binaries (some which can also be compiled into busybox or left out if not needed). I'm working on automatically reading the filesystem from your /boot partition based on the "root=" kernel command line option and adding the appropriate modules.
Create a new archfs.gz (or new extensions) with new cleaned up /usr/bin/archfs:
http://pastebin.com/xiqgyYyL
Now run with:
# archfs lzo
(or whichever crompression you choose). It also takes care of any mounting directories you have in /mnt. And "writefs" is no longer needed, that's all it does anyway.
Then simply add the "root=(your boot partition)" and "archfs=lzo" (or whichever compression you chose) command line options to your grub.cfg.
Run:
# mkinitcpio -p archfs
That'll create an initramfs: archfs-linux.lzo that you need to move to your boot partition with your kernel and archfs.gz. Then point grub to that as your initrd.
This will boot and the tmpfs hook will do it's work just after init has mounted your boot partition and then init will switch roots and run /sbin/init as it would on any normal install.
Mix and match as needed. You can remove the /init file from the root of your filesystem or leave it there and all but an xz compressed archfs.gz will boot the old way aswell (the kernel can't handle the xz version). It should all be fairly upgrade proof, barring any major changes to mkinitcpio.
Boot for me with lzo compression is at least twice as fast as old method. Partly due to lzo compression which is super fast (especially creating the archfs.lzo). It makes for a bigger file but it's still only 350MB (pretty much half my uncompressed root filesystem). -
after keystroke/command, the system is very slow 10-15 secs. before response
What I've done is that I reinstalled 10.8.1 and each time, I ran disk utilitiy. It has helped but fter a while, especially when waking up from sleep, EVERY app can take a lot of time to come up, including those already activated. Every click would take at least 5secs to respond... and then the spinning ball comes up.
It's only after the same app was used, then it would be smooth. For example, I run my cursor down to the bottom of the screen where my dock is hidden. It would take a few times of running down before the dock shows up. From that point on, it would would work nicely unless I click on any of those apps in the dock. Then, it would take another 5secs or more before something shows on the screen such as clicking on Mail. It takes more than 5secs before mail pops up. Then, when I click on any mailbox, it would take another 5secs or the spinning ball comes up. From that point on, clicking on Mail is smooth and cicking on the same mailbox is smooth unless I click on a different mailbox or go to preferences, for example.
So, I keep running disk utility almost everyday and now, it works 99% of the time. If it slows again, I run the disk utility. I guess that's the way to go until they come up with a proper fix.
All this housekeeping work reminds me of Windows and the endless defragging and optimising. That was one of the few reasons why I switched to Apple and now...
Dear Mr Steve Jobs, please send some enlightenment to your Apple teams! -
Postscript file with the RUN command
I have inherited some code that I'm trying to fix. The postscript file contains a 'RUN' command. When I try to open the file, I get the error unable to recognize the command. Understandable since that command does not reside on my server. It resides on a UNIX box which controls the printer. However when I try to print the file to the printer nothing happens. Neither is the command run and the results printed out nor the contents of .PS file is printed. Please help.
I have included an old PostScript program I wrote from the early 1990's that will print a directory of the interpreter's file system, which is a good place to start.
If there are no files matching the string FG530 then you are out of luck, unless you can find it and download it to the PostScript file system again.
I added the commented lines about file paths and the included image is of the first page of the generated output:
%!PS-Adobe
%%Creator: Marvin R. Horton, Macore Company, Inc.
%%BeginProc:
/Buff 100 string def /Wipe 100 string def
/Rebuff {Buff 0 Wipe putinterval} def
/startpage {18 756 moveto gsave (P O S T S C R I P T F I L E S Y S T E M D I R E C T O R Y ) show 400 0 rlineto .5 setlinewidth stroke
grestore 0 -6 rmoveto}def
/Dir {0 -6 rmoveto gsave Buff show Rebuff grestore
currentpoint 6 sub 30 lt{450 eq{showpage startpage}{144 720 rmoveto}ifelse}if }def
%%EndProc:
/Courier findfont 6 scalefont setfont
startpage
(*) {Dir} Buff filenameforall
%%How to get file list from a subdirectory of...: (fonts/*) {Dir} Buff filenameforall
%%How to get file list within specific naming "FG...": (FG???) {Dir} Buff filenameforall
showpage -
NAC Custom Check to run command
hi,
i have a case where i want to check whether the computer has join the microsoft domain or not.
after searching, i found the effective way is to run command nltest.exe. nltest.exe is a command to check trust relationship between workstation and domain controller.
is there any way that custom check can do this ? in CAM document, only registry, file, service, and application check.
this is the link from Microsoft : http://support.microsoft.com/kb/158148
example:
C:\>nltest /server:test3 /sc_query:testd
Flags: 0
Connection Status = 0 0x0 NERR_Success
Trusted DC Name \\TEST2
Trusted DC Connection Status Status = 0 0x0 NERR_Success
The command completed successfully
Can Clean access agent do the command line check and interpret the result ?
thanks,
ydThe Cisco NAC Agent will not able to run and interpret the command output.
If the goal is to check whether the computer is a member of a known domain, you can check 'HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Domain' to contain the name of the domain.
-Dan
Maybe you are looking for
-
I can not work out how to set Firefox to automatically load the latest version of a web site. I have web sites in my bookmarks and it does not look on the internet for the latest version and furthermore using F5 does not work . I need to be able to f
-
To dispay the error message in PO
Hi All, When we create a PO in we need to enter some mandatory fields, say payment terms.If we wont enter that field and tried to save PO. POP up generates(Messages) with RED indicator mentioning ,PAYMENT TERM IS TO BE ENTERED ,Description of the sa
-
2012 R2 Hyper-V Cluster two node design with abundance 1Gbps NICs and FC storage
Hello All, First post so please be gentle! We are currently in the process of building/testing the upgrade of two node 2012 R2 Hyper-V cluster. Two hosts built with Datacentre 2012 R2 which will host approx. 30 VM's. Shared storage will be fault tole
-
Validation too tight to mention. How to allow CRLF in a retricted textfield
Hi Folks. Here's a brain teaser for you. I have a text field that I have a validation on to only allow the following characters... abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789/-:().,'+ and a whitespace. I would also like to allow a
-
I want to install Oracle 9 on a Fedora Core 1. I follow the instruction on the website : http://www.oracle-base.com/articles/9i/Oracle9iInstallationOnFedora1.php Everything goes well, but at the end, I have an error with the "Agent Configuration Assi