i'm new to shell can handle this script for me plz
Write a shell script named displayargs that prints FOUR lines. The first line tells the name that was used to invoke the script, the second line tells how many parameters there were, the third line tells what the last parameter was, and the fourth line tells what the first parameter was. For example:
Last edited by zxmaus; 02-18-2010 at 04:35 AM..
Reason: code tags added
hi all,
I need to find out the last 2 modified files in a folder.There is some way by which,we can check the timestamp and find out..??please help this is urgent.
Thanks in Advance
Anju (3 Replies)
Dear all
I am new to shell script. And this is my first post to this site as well as this forum. I would like to tell this forum that I require shell script, which is regarding transfers of files from a specific directory in a server A to server B on a specific directory through sftp command.... (5 Replies)
Hi all,
I have a number of shell script,perl script.. etc in a directory,which i need to execute in some order.Now i need to create a script to call all these files in that order..so that the new script will execute all the files one by one....plz help this is urgent.
Thanks In advance
Anju (3 Replies)
Dear all
I am still bit new in shell script area.I am writing down a shell script which I guess somewhere wrong so please kindly correct it. I would be greatful for that.
What I actually want from this shell script is that it will move all the files one by one to another server which can be... (2 Replies)
#######################################################################
#
#This script will perform the menu such as : list file, change catalog,
#file check,
#
#This script was written in UNIX Shell Programming Language
#... (3 Replies)
Hi I'm not to shell script and I'm trying to write a simple shell code to do the following.
Shell script should be run in March, June, Sept, & Dec respectively to back up files last modified in the 1st, 2nd, 3rd, and 4th quarters.
I've have the following code.
#!/bin/csh
set v1 = `date... (1 Reply)
Hi All,
I am new to this forum also new to shell scripting.
I have a requirement to read a text from a file which can be in any case like LOGFILE or LogFile or logfile or lOgfILE etc..
Can you guys help me out.
Thanks,
Bacsi01 (1 Reply)
How to print a only files and not directories in a path.
for exam :a user consists both files and directoris in his path.
i have to write a script to display only files not dirctories.
and only dirctories not files.
Advance thanks to forum members.:) (5 Replies)
Hi,
I have initailized a varaible EBID as typeset Long EBID=0
i am calculating value of EBID using certian formula as below:
(( CURR_EBID= ($BANDINDEX << 27) | ($CURR_FREQ << 16) | ($CURR_CELLID << 4) | $CURR_SECTOR_VALUE ))
return $CURR_EBID
The output is as below:
+ (( CURR_EBID=... (6 Replies)
I am extracting data via sql query and some of the data has commas. Output File must be csv and I cannot update the data in the db (as it is used by other application).
Example
table FavoriteThings
Person VARCHAR2(25),
Favorite VARCHAR2(100)
Sample Data
Greta rain drop on... (12 Replies)
Discussion started by: patk625
12 Replies
LEARN ABOUT DEBIAN
xkbsetnamedindicator
XkbSetNamedIndicator(3) XKB FUNCTIONS XkbSetNamedIndicator(3)NAME
XkbSetNamedIndicator - Names an indicator if it is not already named; toggles the state of the indicator; sets the indicator to a specified
state and sets the indicator map for the indicator
SYNOPSIS
Bool XkbSetNamedIndicator (Display *dpy, unsigned int device_spec, Atom name, Bool change_state, Bool state, Bool create_new, XkbIndica-
torMapPtr map);
ARGUMENTS
- dpy connection to the X server
- device_spec
device ID, or XkbUseCoreKbd
- name name of the indicator to change
- change_state
whether to change the indicator state or not
- state
desired new state for the indicator
- create_new
whether a new indicator with the specified name should be created when necessary
- map new map for the indicator
DESCRIPTION
If a compatible version of the Xkb extension is not available in the server, XkbSetNamedIndicator returns False. Otherwise, it sends a
request to the X server to change the indicator specified by name and returns True.
If change_state is True, and the optional parameter, state, is not NULL, XkbSetNamedIndicator tells the server to change the state of the
named indicator to the value specified by state.
If an indicator with the name specified by name does not already exist, the create_new parameter tells the server whether it should create
a new named indicator. If create_new is True, the server finds the first indicator that doesn't have a name and gives it the name specified
by name. If the optional parameter, map, is not NULL, XkbSetNamedIndicator tells the server to change the indicator's map to the values
specified in map.
In addition, it can also generate XkbIndicatorStateNotify, XkbIndicatorMapNotify, and XkbNamesNotify events.
RETURN VALUES
True The XkbSetNamedIndicator function returns True if a compatible version of the Xkb extension is available in the server.
False The XkbSetNamedIndicator function returns False if a compatible version of the Xkb extension is not available in the server.
DIAGNOSTICS
BadAtom A name is neither a valid Atom or None
BadImplementation
Invalid reply from server
SEE ALSO XkbIndicatorMapNotify(3), XkbIndicatorStateNotify(3), XkbNamesNotify(3)X Version 11 libX11 1.5.0 XkbSetNamedIndicator(3)