I tried using the following code to execute a program but it doesnt seems to be working .. I would like to know whats wrong wit it .
execve("/bin/cat", "words", NULL); (0 Replies)
Hi,
i want to write a script that executes a program (exec?) .
this program then requires a filename as input.
how do i give it this input in the script so the program will be complete run and close by the script.
e.g.
exec prog.exe
program then asks for filename
"enter filename:"... (1 Reply)
Hi,
I am a complete newbie for unix. I have just installed mysql on my MAC. I was wondering every time I wanted to use mysql I had to ./mysql or sh mysql everytime on /usr/local/bin/mysql/bin. How can I execute the mysql program without using ./ or sh. I chmod +x already. And what do I have to... (3 Replies)
Hi
I want to create a shell script tha executes a C program and then retrieves information about it.
I managed to run the program with:
#!/bin/bash
gcc -o program program.c
./program
Now i want to get the id of the process (pid)
Any help would be appreciated,
Thank you (18 Replies)
Hello,
I have a c program executable which I need to run inside a shell script.
But the c program runs in a subshell because of which all the actions done by the c program is not available to the current shell.
Is there any way to execute a C program binary executable in the current shell? (4 Replies)
My professor gave me a code with no errors.
When I compile it's fine, it doesn't show any errors, but when I try to execute it shows this:
line 3: syntax error near unexpected token '('
line 3: 'int main()'
I searched through the Internet but I couldn't find any solution. Please!!!... (1 Reply)
Hi Experts,
I am creating a script to monitor a certain applications running in my Unix system.
My script order goes this way:
df -h /of/a/filesystem
tail -5 /path/to/an/application/availability
su -c "jsmon pf=(profile of my application) `echo "p"`" usradm
#EOF
I am... (7 Replies)
Hi there,
When I am trying to execute any shell script.
The shell script only execute line 1 and I notice that the rest o the program was not executed. Please advise.
# bash +x vmscript-4.sh
Even when I enter this command there is not output.
sudo su
cd /tmp
cp... (2 Replies)
Discussion started by: alvinoo
2 Replies
LEARN ABOUT DEBIAN
sys::filesystem::aix
Sys::Filesystem::Aix(3pm) User Contributed Perl Documentation Sys::Filesystem::Aix(3pm)NAME
Sys::Filesystem::Aix - Return AIX filesystem information to Sys::Filesystem
SYNOPSIS
See Sys::Filesystem.
INHERITANCE
Sys::Filesystem::Aix
ISA UNIVERSAL
METHODS
version ()
Return the version of the (sub)module.
ATTRIBUTES
The following is a list of filesystem properties which may be queried as methods through the parent Sys::Filesystem object.
account
Used by the dodisk command to determine the filesystems to be processed by the accounting system.
boot
Used by the mkfs command to initialize the boot block of a new filesystem.
check
Used by the fsck command to determine the default filesystems to be checked.
dev Identifies, for local mounts, either the block special file where the filesystem resides or the file or directory to be mounted.
free
This value can be either true or false. (Obsolete and ignored).
mount
Used by the mount command to determine whether this file system should be mounted by default.
nodename
Used by the mount command to determine which node contains the remote filesystem.
size
Used by the mkfs command for reference and to build the file system.
type
Used to group related mounts.
vfs Specifies the type of mount. For example, vfs=nfs specifies the virtual filesystem being mounted is an NFS filesystem.
vol Used by the mkfs command when initializing the label on a new filesystem. The value is a volume or pack label using a maximum of 6
characters.
log The LVName must be the full path name of the filesystem logging logical volume name to which log data is written as this file system is
modified. This is only valid for journaled filesystems.
SEE ALSO
Sys::Filesystem
Example /etc/filesystems
* @(#)filesystems @(#)29 1.22 src/bos/etc/filesystems/filesystems, cmdfs, bos530 9/8/00 13:57:45
* IBM_PROLOG_BEGIN_TAG
* This is an automatically generated prolog.
*
* <snip>
*
* This version of /etc/filesystems assumes that only the root file system
* is created and ready. As new file systems are added, change the check,
* mount, free, log, vol and vfs entries for the appropriate stanza.
/:
dev = /dev/hd4
vol = "root"
mount = automatic
check = false
free = true
vfs = jfs2
log = /dev/hd8
type = bootfs
/proc:
dev = /proc
vol = "/proc"
mount = true
check = false
free = false
vfs = procfs
/scratch:
dev = /dev/fslv02
vfs = jfs2
log = INLINE
mount = true
account = false
Example /usr/sbin/mount output
node mounted mounted over vfs date options
-------- --------------- --------------------- ------------ ---------------
/dev/hd4 / jfs2 Mar 24 12:14 rw,log=/dev/hd8
/proc /proc procfs Mar 24 12:15 rw
/dev/fslv02 /scratch jfs2 Mar 24 12:15 rw,log=INLINE
filesystems(4)
Manpage includes all known options, describes the format and comment char's.
VERSION
$Id: Aix.pm 128 2010-05-12 13:16:44Z trevor $
AUTHOR
Nicola Worthington <nicolaw@cpan.org> - <http://perlgirl.org.uk>
Jens Rehsack <rehsack@cpan.org> - <http://www.rehsack.de/>
COPYRIGHT
Copyright 2004,2005,2006 Nicola Worthington.
Copyright 2008-2010 Jens Rehsack.
This software is licensed under The Apache Software License, Version 2.0.
<http://www.apache.org/licenses/LICENSE-2.0>
perl v5.10.1 2010-05-18 Sys::Filesystem::Aix(3pm)